Skip to content

Instantly share code, notes, and snippets.

@mitkot
Created December 26, 2015 05:09
Show Gist options
  • Save mitkot/e691d5cc633279dee417 to your computer and use it in GitHub Desktop.
Save mitkot/e691d5cc633279dee417 to your computer and use it in GitHub Desktop.
Change permissions of a directory in S3
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