Skip to content

Instantly share code, notes, and snippets.

@kentokento
Created June 9, 2015 04:19
Show Gist options
  • Save kentokento/fbcad8838f1960d9e665 to your computer and use it in GitHub Desktop.
Save kentokento/fbcad8838f1960d9e665 to your computer and use it in GitHub Desktop.
aws-cliでs3の画像のパーミッションを一括変更
aws s3 ls --recursive s3://{{ bucketName }}/ | awk '{print $4}' | xargs -P4 -I{} aws s3api put-object-acl --acl public-read --bucket {{ bucketName }} --key "{}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment