awscli

Ubuntu

since 2014-01-28

http://aws.amazon.com/jp/cli/

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

http://understeer.hatenablog.com/entry/2013/10/29/004609

Windows

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": [
        {

...
awscli.txt · 最終更新: 2014/01/28 08:51 by Takuya Nishimoto
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0