AWS CLIのインストールと設定

AWS CLIのインストール

# rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# yum --enablerepo=epel update epel-release
# yum search python-pip
# yum install python-pip
# pip install awscli

AWS CLIの設定

$ aws configure                                                                                    
AWS Access Key ID [********************]: <アクセスキーを入力しEnter>
AWS Secret Access Key [********************]: <シークレットアクセスキーを入力しEnter>
Default region name [ap-northeast-1]: <Enter>
Default output format [None]: <Enter>

設定内容の確認
~/.aws/config

[default]
aws_access_key_id = <アクセスキー>
aws_secret_key = <シークレットアクセスキー>
region = ap-northeast-1