#author("2019-04-28T05:15:43+09:00","default:ryuichi","ryuichi")
#author("2019-04-28T05:18:21+09:00","default:ryuichi","ryuichi")
* AWS CLI インストール - Windows [#gd7efaa4]


** インストール [#vca8cc81]

- MSIインストーラーをダウンロードして、インストールする
- https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/install-windows.html

** 設定 [#k43f1670]

*** 設定 [#tf7be1eb]

 CMD> aws configure
 
 AWS Access Key ID [None]: ABC123
 AWS Secret Access Key [None]: def456abc789
 Default region name [None]: ap-northeast-1
 Default output format [None]:


- https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cli-chap-configure.html?shortFooter=true
- リージョン https://docs.aws.amazon.com/ja_jp/general/latest/gr/rande.html

*** 認証情報ファイルのパスを指定する環境変数 [#i6e5d431]

 AWS_CONFIG_FILE %appdata%\aws\config
 AWS_SHARED_CREDENTIALS_FILE %appdata%\aws\credentials

- デフォルトでは%USERPROFILE%\.awsなので、APPDATA以下にするには上のような環境変数を設定する
- https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cli-configure-envvars.html?shortFooter=true

- https://wiki.archlinux.jp/index.php/XDG_Base_Directory_%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88

** 動作確認 [#cee3ac4c]

 CMD> aws s3 ls


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS