Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAuth error when registering a flow with s3 storage #3100
Comments
|
Hi @n-batalha what happens if you initialize boto3 client directly and call |
|
@joshmeek the same credentials work to upload, I use it to store Prefect results in s3 and for a direct |
|
@joshmeek to be 100% sure I edited the reproducible example above to do an upload in the same bucket, works. |
|
FWIW I ran your code exactly and had no issue uploading to a bucket:
|
|
@joshmeek good heads up. I believe the env vars take precedence so it should work for both. The docs state (the part here) that the same setup is required as boto, but there is a bit going on in here:
Removing I am leaving this open as it should work when both |
|
Btw, debugging I can see that the
|


Description
When I create a pipeline with s3 storage, I get an auth error.
Potential reason is flagged below underEnvironmentI made it reproducible with the script below, save it as
example.py, make your env vars available:I also have
export PREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS='{"ACCESS_KEY": "REDACTED", "SECRET_ACCESS_KEY": "REDACTED"}'although the docs say that we should use the normal config for boto .Now run:
I get:
Expected Behavior
Flow is uploaded
Reproduction
See above. If you need I can provide
poetry.lock.Environment
NOTE how the boto env vars are not listed below, that could be the issue.