Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Created February 25, 2011 17:15
Show Gist options
  • Save mitchellh/844112 to your computer and use it in GitHub Desktop.
Save mitchellh/844112 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Convenience variable to the cred path
CREDENTIALS="${AWS_PATH}/credentials/example"
# No CloudFormation (perhaps)
unset AWS_CREDENTIAL_FILE
export AWS_ACCESS_KEY_ID="foo"
export AWS_SECRET_ACCESS_KEY="bar"
export EC2_PRIVATE_KEY="${CREDENTIALS}/pk.pem"
export EC2_CERT="${CREDENTIALS}/cert.pem"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment