Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Use standard AWS credentials environment variables #65

Merged
merged 1 commit into from
Jun 10, 2015

Conversation

keymon
Copy link
Contributor

@keymon keymon commented Jun 10, 2015

Terraform now supports get the AWS credentials from the standard environment variables.

To make it work, you should not specify 'access_key' or 'secret_key' in the provider definition. We also need to remove the variables as we don't use them.

This will allow use to just run:

terraform apply -var env=hector

rather than:

terraform apply \
   -var env=hector \
   -var aws_access_key=$AWS_ACCESS_KEY_ID \
   -var aws_secret_key=$AWS_SECRET_ACCESS_KEY

Terraform [now supports get the AWS credentials 
from the standard environment variables](hashicorp/terraform#851).
To make it work, you should not specify 'access_key' or
'secret_key' in the provider definition. 
We also need to remove the variables as we don't use them.
@jimconner
Copy link
Contributor

Awesome - merging.

jimconner added a commit that referenced this pull request Jun 10, 2015
…ariables

Use standard AWS credentials environment variables
@jimconner jimconner merged commit 1aefa50 into master Jun 10, 2015
@annashipman annashipman deleted the use_aws_credential_environment_variables branch June 12, 2015 09:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants