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
This page was last updated on 21 Dec 2018, 12:26 p.m..