Created
February 28, 2017 09:19
-
-
Save Omranic/d0d923e8b9a8a70176eaddcc6bf56a64 to your computer and use it in GitHub Desktop.
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
// Install/upgrade amazon cli tools | |
pip install --upgrade --user awscli | |
// Check amazon cli installation | |
aws --version | |
// Uninstall amazon cli tools | |
pip uninstall awscli | |
// Check pip version | |
pip —version | |
// Upgrade pip | |
pip install --upgrade pip | |
// Configure amazon cli tools | |
aws configure --profile user2 --region eu-west-1 --output (json|table|text) | |
// Set default named profile per shell session | |
export AWS_DEFAULT_PROFILE=user2 | |
// Important paths | |
~/.aws/credentials | |
~/.aws/config | |
// Environment Variables | |
AWS_ACCESS_KEY_ID | |
AWS_SECRET_ACCESS_KEY | |
AWS_SESSION_TOKEN | |
AWS_DEFAULT_REGION | |
AWS_DEFAULT_PROFILE | |
AWS_CONFIG_FILE | |
// Identify current shell | |
echo $SHELL | |
// Find amazon cli tools autocompletion script | |
sudo find / -name "aws_zsh*" | |
// Enable Command Completion | |
source /home/vagrant/.local/bin/aws_zsh_completer.sh | |
// Add amazon cli tools to global $PATH variable (.bash_profile|.zshrc) | |
export PATH=~/.local/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment