表題の通り。`awscli`は最初から入っているのかと思ったが入っていなかった。
■ 環境
- awscli 1.11.17
- AmazonLinux 2016.09
- Docker for Mac 1.12.3
- Mac OSX El Capitan
■ Docker
AmazonLinuxのコンテナを起動する。
$ docker run -ti --rm --name amazon amazonlinux /bin/bash
bash-4.2# which aws
bash: which: command not found
bash-4.2#
bash-4.2# aws
bash: aws: command not found
bash-4.2#
`which`コマンドも入っていなかったので`aws`コマンドを実行してみたが入っていなかった。
■ awscli
`awscli`というパッケージ名ではなかったようなので検索。
bash-4.2# yum search aws
Loaded plugins: priorities
=============== N/S matched: aws ================================================
:
aws-cli.noarch : Provides a unified command line interface to Amazon Web Services
:
bash-4.2#
bash-4.2# yum install -y aws-cli
:
bash-4.2# aws --version
aws-cli/1.11.17 Python/2.7.12 Linux/4.4.27-moby botocore/1.4.74
bash-4.2#
インストールができた。あとは`configure`しておしまい。
以上。