I'm having an issue with AWS credentials that I can't figure out. I'm just trying to upload a file to s3.
I copied the instructions from https://prefecthq.github.io/prefect-aws/ for uploading a file and made some small changes.
When I run this I get a credentials not found error:
Copy code
botocore.exceptions.NoCredentialsError: Unable to locate credentials
I can see the block in the Prefect Cloud UI and as far as I can tell all the data in it looks good and all the names in the workflow and the block match.
I ran
pip install -U prefect
and
pip install -U prefect_aws
just to make sure I had the latest versions of the libraries.
What else could I be doing wrong?
✅ 1
k
Kevin Grismore
03/22/2024, 8:45 PM
Copy code
s3_bucket = S3Bucket(
bucket_name="my-bucket",
credentials=aws_credentials <--- change this
)
Kevin Grismore
03/22/2024, 8:46 PM
there's a docstring mistake that has been fixed, but we haven't done a release yet so the docs are behind. so sorry about that!
Kevin Grismore
03/22/2024, 8:47 PM
in case it isn't obvious I changed the left side of the assignment operator from
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.