Getting Access Denied when calling the PutObject operation with bucket-level permission

To answer my own question: The example policy granted PutObject access, but I also had to grant PutObjectAcl access. I had to change “s3:PutObject”, “s3:GetObject”, “s3:DeleteObject” from the example to: “s3:PutObject”, “s3:PutObjectAcl”, “s3:GetObject”, “s3:GetObjectAcl”, “s3:DeleteObject” You also need to make sure your bucket is configured for clients to set a public-accessible ACL by unticking these … Read more

Quick way to list all files in Amazon S3 bucket?

I’d recommend using boto. Then it’s a quick couple of lines of python: from boto.s3.connection import S3Connection conn = S3Connection(‘access-key’,’secret-access-key’) bucket = conn.get_bucket(‘bucket’) for key in bucket.list(): print(key.name.encode(‘utf-8’)) Save this as list.py, open a terminal, and then run: $ python list.py > results.txt

File not found.