Jon Atkinson

I'm a technologist, with a long and varied history in high-end technical delivery and infrastructure management. I'm particularly interested in managing software teams, rapid application development, and scalability challenges.

Notebook: Recursively updating S3 bucket permissions

19th September 2017

s3 aws notebook cli

If you want to recursively apply a permission to an S3 bucket (for example, to add the public-read permission), then you can use the aws CLI tool to copy from a bucket to itself, and update the metadata as it does so. It's quicker that using the AWS console, anyway.

$ aws s3 cp s3://bucketname/optional/path/ s3://bucketname/optional/path/ \
--recursive \
--metadata-directive REPLACE \
--acl public-read \
--cache-control max-age=31536000