Skip to content

Instantly share code, notes, and snippets.

@cuzz22000
Created October 14, 2015 16:47
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 cuzz22000/1eb0edeb5dd7885d46da to your computer and use it in GitHub Desktop.
Save cuzz22000/1eb0edeb5dd7885d46da to your computer and use it in GitHub Desktop.
Export AWS access and secret keys
#!/bin/bash
[ "$1" = '' ] && PROF='default' || PROF=$1
export AWS_ACCESS_KEY_ID=`aws configure --profile=$PROF get aws_access_key_id`
export AWS_SECRET_ACCESS_KEY=`aws configure --profile=$PROF get aws_secret_access_key`
echo Credentials for $PROF
echo AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID ,AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment