install aws-cli v2 with oneline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/local/bin/aws
にインストールされるので PATH を通せば awscliv2 が使える。/usr/bin/aws
には既存の awscli v1 が残るので使い分けは可能。