Created
November 9, 2018 20:45
-
-
Save brockers/c7ea845304ea4a77958895ddbb28ab50 to your computer and use it in GitHub Desktop.
AWS Bashrc Profile
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
# AWS Scripting functionality | |
####################################################### | |
if type "aws" > /dev/null; then | |
complete -C aws_completer aws; | |
fi | |
AWSCONFPATH="$HOME/.aws/config" | |
if [ -f "$AWSCONFPATH" ]; then | |
export AWS_ACCESS_KEY_ID=$(awk -F "=" '/aws_access_key_id/ {print $2}' $HOME/.aws/config) | |
export AWS_SECRET_ACCESS_KEY=$(awk -F "=" '/aws_secret_access_key/ {print $2}' $HOME/.aws/config) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment