Created
December 23, 2024 19:48
-
-
Save danilogco/e144196780641ccd0e29676ab4967be8 to your computer and use it in GitHub Desktop.
AWS CLI v2 installer script (or update)
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 | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o /tmp/awscliv2.zip | |
unzip /tmp/awscliv2.zip -d /tmp/awscli | |
sudo /tmp/awscli/aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli | |
# to update: | |
# sudo /tmp/awscli/aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update | |
rm -rf /tmp/awscliv2.zip /tmp/awscli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment