Skip to content

Instantly share code, notes, and snippets.

@k3karthic
Created June 7, 2022 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k3karthic/e79281e35fe934a2c349e5749162e0d8 to your computer and use it in GitHub Desktop.
Save k3karthic/e79281e35fe934a2c349e5749162e0d8 to your computer and use it in GitHub Desktop.
Update AWS CLI v2
#!/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