pip install awscli
pip list | grep aws
awscli (1.6.0)
or from github
aws help
aws [options] <command> <subcommand> [parameters]
command is AVAILABLE SERVICES(aws help
)
aws ec2 help
subcommand is AVAILABLE COMMANDS(aws command help
)
ex:ec2
- accept-vpc-peering-connection
- allocate-address
- etc
subcommand help
aws ec2 accept-vpc-peering-connection help
よくあるヘルプが表示される
aws s3 ls s3://mf.recommend
Unable to locate credentials. You can configure credentials by running "aws configure".
aws configure
AWS Access Key ID [None]: xxx
AWS Secret Access Key [None]: yyy/zzz
Default region name [None]: ap-southeast-1
Default output format [None]: json
cat ~/.aws/config
[default]
output = json
region = ap-southeast-1
cat ~/.aws/credentials
[default]
aws_access_key_id = xxx
aws_secret_access_key = yyy/zzz