Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

credential_source not working when profile switching inside terraform #17

Closed
lifeofguenter opened this issue Nov 5, 2019 · 1 comment

Comments

@lifeofguenter
Copy link

running terraform with AWS_PROFILE=foobar, where foobar defines credential_source = Ec2InstanceMetadata in the ~/.aws/credentials works, because the auth happens natively via the go-sdk (see: https://github.com/aws/aws-sdk-go/pull/2201/files).

However, if I specify profile in terraform itself (either backend, or provider), then unfortunately a slimmed-down version of the aws-sdk is being used (https://github.com/hashicorp/aws-sdk-go-base/blob/master/awsauth.go) where it does not properly parse credentials_source from the aws-config and thus profile switching fails.

not sure why my previous bug was closed down. This is not a bug report on aws-provider but this is a bug on the s3 remote backend which is implemented in this repository.

Please do not close this ticket. It is a valid bug.

@lifeofguenter
Copy link
Author

closing in favour of: #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant