Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created January 21, 2016 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save phlipper/97f098d676d4e2e7d8c8 to your computer and use it in GitHub Desktop.
Save phlipper/97f098d676d4e2e7d8c8 to your computer and use it in GitHub Desktop.
AWS CLI S3 Update ACLs
aws s3api list-objects --bucket=mys3bucket \
--region=us-west-2 \
--output=text \
--prefix=myprefix \
--query='Contents[].[Key]' | \
xargs -P4 -I % aws s3api put-object-acl \
--acl=public-read \
--region=us-west-2 \
--bucket=mys3bucket \
--key='%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment