Last active
July 14, 2024 03:41
-
-
Save alexolinux/9d470cf64b7bc88318ba0f137c2c8f24 to your computer and use it in GitHub Desktop.
aws-cli installation
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 | |
ARCH=$(arch) | |
if [ "${ARCH}" = "x86_64" ]; then | |
cd /tmp | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
sudo ./aws/install | |
aws --version | |
elif [ "${ARCH}" = "aarch64" ]; then | |
/tmp | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
sudo ./aws/install | |
aws --version | |
else | |
echo "Archtecture is not supported." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html