Created
July 21, 2017 20:48
-
-
Save shangdev/a83f5f08ed00a8a60376d96c34ac2332 to your computer and use it in GitHub Desktop.
aws s3 cli 记录
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
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