Skip to content

Instantly share code, notes, and snippets.

@cosmin
Created April 18, 2011 04:00
Show Gist options
  • Save cosmin/924788 to your computer and use it in GitHub Desktop.
Save cosmin/924788 to your computer and use it in GitHub Desktop.
Script to setup AWS credentials for various command line tools
AWSAccessKeyId=YOUR_AWS_ACCESS_KEY
AWSSecretKey=YOUR_AWS_SECRET_KEY
# put this file in ~/.ec2/setup-credentials.sh and use it with
# source ~/.ec2/setup-credentials.sh from your .bashrc or similar
export EC2_PRIVATE_KEY="$HOME/.ec2/ec2-pk.pem"
export EC2_CERT="$HOME/.ec2/ec2-cert.pem"
export AWS_CREDENTIAL_FILE="$HOME/.ec2/aws.credentials"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment