-
-
Save francotel/0143461895089ccfa90f2d90c0c29b41 to your computer and use it in GitHub Desktop.
AWS CLI S3 Update ACLs
This file contains hidden or 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