Skip to content

Instantly share code, notes, and snippets.

@hertzsprung
Last active April 26, 2021 14:52
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 hertzsprung/4c412617475200157a00284f453c0d95 to your computer and use it in GitHub Desktop.
Save hertzsprung/4c412617475200157a00284f453c0d95 to your computer and use it in GitHub Desktop.
Install AWS CLI v2 without sudo
# download and install to $HOME/bin
# https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
cd awscliv2 && ./install -i $HOME/aws-cli -b $HOME/bin
# or update an existing installation:
# cd awscliv2 && ./install -i $HOME/aws-cli -b $HOME/bin --update
# enable bash autocompletion
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-completion.html#cli-command-completion-configure
echo "complete -C '\$HOME/aws-cli/v2/current/bin/aws_completer' aws" >> $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment