Skip to content

Instantly share code, notes, and snippets.

@danilogco
Created December 23, 2024 19:48
Show Gist options
  • Save danilogco/e144196780641ccd0e29676ab4967be8 to your computer and use it in GitHub Desktop.
Save danilogco/e144196780641ccd0e29676ab4967be8 to your computer and use it in GitHub Desktop.
AWS CLI v2 installer script (or update)
#!/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