Skip to content

Instantly share code, notes, and snippets.

@kawaz
Last active March 2, 2022 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kawaz/7ce43327ba87f24764cf55bcc26778af to your computer and use it in GitHub Desktop.
Save kawaz/7ce43327ba87f24764cf55bcc26778af to your computer and use it in GitHub Desktop.
install aws-cli v2 with oneline
#!/bin/bash
( set -ex -o pipefail && \
d="$(mktemp -d)" && \
cd "$d" && \
trap "$(printf "rm -rf %q" "$d")" EXIT && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o awscliv2.zip && \
unzip awscliv2.zip && \
sudo ./aws/install --update )
@kawaz
Copy link
Author

kawaz commented Mar 2, 2022

  • コレを実行すると /usr/local/bin/aws にインストールされるので PATH を通せば awscliv2 が使える。
  • /usr/bin/aws には既存の awscli v1 が残るので使い分けは可能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment