Skip to content

Instantly share code, notes, and snippets.

@shangdev
Created July 21, 2017 20:48
Show Gist options
  • Save shangdev/a83f5f08ed00a8a60376d96c34ac2332 to your computer and use it in GitHub Desktop.
Save shangdev/a83f5f08ed00a8a60376d96c34ac2332 to your computer and use it in GitHub Desktop.
aws s3 cli 记录
1.cp 文件到s3,并设置为public权限:
aws s3 cp images s3://adwords.yeahmobi.com/wp-content/themes/hanrm-cn/assets/images --recursive --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
2.递归删除s3上目录下的所以文件:
aws s3 rm --recursive s3://adwords.yeahmobi.com/wp-content/themes/hanrm-cn/assets/images/
3.列出s3某个目录下的所以文件:
aws s3 ls s3://adwords.yeahmobi.com/wp-content/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment