Hi, I want to register a flow to Prefect Cloud with flow script uploaded to S3 storage. It is giving me "An error occurred (AccessDenied) when calling the PutObject operation". How do I pass AWS credentials to this registration activity?
03/02/2022, 8:31 PM
This would just be authenticating to aws on your machine that does the registration. Like you could have the AWS_SECRET_KEY and AWS_ACCESS_KEY_ID environment variables set or something like that. Let me find the docs
I have 2 AWS profiles, the 'default' profile does not have enough privilege. But I do have another AWS profile that has permission, How can I use the non-default profile?
Do you mean generate credentials and export to environment variables?
03/02/2022, 8:42 PM
Ah I see what the issue. Let me look at that
I don’t think you can at the moment because the S3 storage uses this line to get a client, and then the credentials are passed as None. If we allows pass through, we would pass in the credentials. I think you need to toggle your aws profile so that the right credentials are pulled. Let me look at that a bit