AccessDenied for ListObjects for S3 bucket when permissions are s3:*

I am getting: An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied When I try to get folder from my S3 bucket. Using this command: aws s3 cp s3://bucket-name/data/all-data/ . –recursive The IAM permissions for the bucket look like this: { “Version”: “version_id”, “Statement”: [ { “Sid”: “some_id”, “Effect”: “Allow”, “Action”: [ “s3:*” … Read more

How to choose an AWS profile when using boto3 to connect to CloudFront

I am using the Boto 3 python library, and want to connect to AWS CloudFront. I need to specify the correct AWS Profile (AWS Credentials), but looking at the official documentation, I see no way to specify it. I am initializing the client using the code: client = boto3.client(‘cloudfront’) However, this results in it using … Read more