@kyanny's blog

My thoughts, my life. Views/opinions are my own.

AWS CLI v2 はダウンロードだけで動かせる

docs.aws.amazon.com

インストール手順には↓と書いてあるけど、sudo ./aws/install しなくても aws コマンドを実行できる。

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

unzip して展開したディレクトリの中に aws コマンドのバイナリがあるので、直接実行すればよい。システムにインストールせず試しに使いたいときや複数バージョンを併用したいときに便利。

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
cd ./aws/dist
./aws --help