I have an already created bucket in amazon s3. I want to make its content publicly available without any authentication. I have tried from documents of boto
To set a canned ACL for a bucket, use the set_acl method of the Bucket object. The argument passed to this method must be one of the four permissable canned policies named in the list CannedACLStrings contained in acl.py. For example, to make a bucket readable by anyone:
b.set_acl('public-read')
It is not working. I still cant access my files publicly. However setting acl to public-read
for individual files is working.
I want to make it public from python as I don't have access to s3 console.
I want to make whole bucket publicly readable.
My code is
conn = boto.connect_s3(
aws_access_key_id = access_key,
aws_secret_access_key = secret_key,
host = 's3.amazonaws.com',
#is_secure=False, # uncomment if you are not using ssl
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)
bucket = conn.get_bucket('media_library')
bucket.set_acl('public-read')