Created
January 21, 2016 04:48
-
-
Save phlipper/97f098d676d4e2e7d8c8 to your computer and use it in GitHub Desktop.
AWS CLI S3 Update ACLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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