Is there an S3 policy for limiting access to only see/access one bucket?

I’ve been trying this for a while and finally came up with a working solution. You must use different “Resources” depending on the kind of action you’re performing. Also I included some missing actions in the previous answer (like DeleteObject) and restricting some more (like PutBucketAcl). The following IAM policy is working for me now: … 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

Correct S3 + Cloudfront CORS Configuration?

On June 26, 2014 AWS released proper Vary: Origin behavior on CloudFront so now you just Set a CORS Configuration for your S3 bucket including <AllowedOrigin>*</AllowedOrigin> In CloudFront -> Distribution -> Behaviors for this origin Allowed HTTP Methods: +OPTIONS Cached HTTP Methods +OPTIONS Cache Based on Selected Request Headers: Whitelist the Origin header. Wait for … Read more