Created
June 7, 2022 05:11
-
-
Save k3karthic/e79281e35fe934a2c349e5749162e0d8 to your computer and use it in GitHub Desktop.
Update AWS CLI v2
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
#!/usr/bin/env bash | |
cd /tmp | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
curl -o awscliv2.sig https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip.sig | |
gpg --verify awscliv2.sig awscliv2.zip | |
if [ $? -eq 0 ]; then | |
unzip awscliv2.zip | |
./aws/install --update -i $HOME/aws -b $HOME/bin | |
fi | |
rm -rf /tmp/aws* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment