Last active
November 12, 2024 18:15
-
-
Save hertzsprung/4c412617475200157a00284f453c0d95 to your computer and use it in GitHub Desktop.
Install AWS CLI v2 without sudo
This file contains 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
# 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