since 2013-01-22
since 2014-01-28
http://aws.amazon.com/jp/documentation/cli/
$ sudo pip install awscli $ aws configure $ aws help $ aws ec2 describe-instances --instance-ids i-NNNNNNNNN $ aws route53 list-hosted-zones
Windows で PIP を使ってしまった:
c:\work\ec2>pip install awscli Downloading/unpacking awscli Downloading awscli-1.2.10.tar.gz (157kB): 157kB downloaded Running setup.py egg_info for package awscli ... Successfully installed awscli botocore bcdoc six colorama rsa jmespath python-da teutil pyasn1 ply Cleaning up... c:\work\ec2>which aws C:\Python27\Scripts\aws C:\Python27\Scripts\aws.cmd c:\work\ec2>aws usage: aws [options] <command> <subcommand> [parameters] aws.cmd: error: too few arguments
最初に aws configure する:
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
c:\work\ec2>aws configure AWS Access Key ID [None]: ...
インスタンスの確認:
c:\work\ec2>aws ec2 describe-instances { "Reservations": [ { ...