Last active
March 2, 2022 18:21
-
-
Save kawaz/7ce43327ba87f24764cf55bcc26778af to your computer and use it in GitHub Desktop.
install aws-cli v2 with oneline
This file contains hidden or 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 ) |
Author
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 が残るので使い分けは可能。