Skip to content

Instantly share code, notes, and snippets.

@alexolinux
Last active July 14, 2024 03:41
Show Gist options
  • Save alexolinux/9d470cf64b7bc88318ba0f137c2c8f24 to your computer and use it in GitHub Desktop.
Save alexolinux/9d470cf64b7bc88318ba0f137c2c8f24 to your computer and use it in GitHub Desktop.
aws-cli installation
#!/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