Skip to content

Instantly share code, notes, and snippets.

@abtreece
Last active July 29, 2016 14:27
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 abtreece/87b7fd31941ceb918167f4e7863eb000 to your computer and use it in GitHub Desktop.
Save abtreece/87b7fd31941ceb918167f4e7863eb000 to your computer and use it in GitHub Desktop.
.files for Terraform environment variables
Have the following configured in my home dir...
/Users/abtreece/.env.d
├── aws_eu-central-1
└── aws_us-east-1
Each is configured with the following variables which may or may not be region specific...
export AWS_ACCESS_KEY_ID="AZAZAZAZAZAZAZAZAZAZ"
export AWS_SECRET_ACCESS_KEY="aksi15or20439gwbskfdasdvfasdklfsdf"
export TF_VAR_key_name="eu-central-1"
export TF_VAR_key_file="/Users/abtreece/.ssh/eu-central-1.pem"
To work in a region I...
$ source ~/.env.d/aws_eu-central-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment