Hi, I want to register a flow to Prefect Cloud wi...
# prefect-community
p
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?
k
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 think this page is good
p
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?
k
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
I guess you have to change your profile like this
p
It works! Thanks @Kevin Kho
k
Nice!