AWS S3

芒果牛奶

=======安装was api=======

https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/installing.html

yum install python3-pip
pip3 install awscli  (pip uninstall awscli)

============获取aws账号的账号ID和密钥========
IAM->策略->创建策略->可视化编辑器
IAM->用户->添加用户->用户名->编程访问->直接附加现有策略
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-chap-getting-started.html


aws configure  


配置信息在
~/.aws/config
~/.aws/credentials

============操作S3桶=====================
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/using-s3-commands.html



upload file to S3

=======安装was api=======
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/installing.html
yum install python-pip
pip install awscli  (pip uninstall awscli)

============获取aws账号的账号ID和密钥========
IAM->策略->创建策略->可视化编辑器
IAM->用户->添加用户->用户名->编程访问->直接附加现有策略
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-chap-getting-started.html
aws configure

============操作S3桶=====================
https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/using-s3-commands.html
阅读 78

运维背锅之路

1 声望
0 粉丝
0 条评论
你知道吗?

运维背锅之路

1 声望
0 粉丝
宣传栏