Created
December 26, 2015 05:09
-
-
Save mitkot/e691d5cc633279dee417 to your computer and use it in GitHub Desktop.
Change permissions of a directory in S3
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 s3 ls --recursive s3://{bucketname}/logs/ | awk '{print $4}' | xargs -P4 -I{} aws s3api put-object-acl --acl private --bucket {bucketname} --key "{}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment