安装
pip install awscli
配置
aws configure 可以根据提示设置默认配置
配置文件保存位置
~/.aws $ cat config
[default]
region = cn-east-1
[profile user1]
region = cn-east-1
s3 =
signature_version = s3v4
~/.aws $ cat credentials
[default]
aws_access_key_id = xxx
aws_secret_access_key = xxx
[user1]
aws_access_key_id = xxx
aws_secret_access_key = xxx
测试
aws --endpoint-url http://endpoint.com s3 ls --profile user1