"'S3' object has no attribute 'Bucket'", python boto3 aws 1

“‘S3’ object has no attribute ‘Bucket'”, python boto3 aws

s3 = boto3.resource('s3') 
the_bucket = s3.Bucket('my_bucket')

Here is what the above code is Doing:
1. We’re importing the boto3 library.
2. We’re creating a resource service client by calling boto3.resource().
3. We’re getting the bucket by calling Bucket() on s3.

Similar Posts