Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Fix AWS credentials handling #35

Open
ManuStoessel opened this issue Apr 13, 2021 · 0 comments
Open

Fix AWS credentials handling #35

ManuStoessel opened this issue Apr 13, 2021 · 0 comments

Comments

@ManuStoessel
Copy link

What went wrong:
When using AWS as the cloud provider for creating a cluster, then using the credentials from environment variables doesn't work. The options access_key_id and secret_access_key are required and Terraform complains, when they are not present in the cloud provider config. When specifying those options with empty strings or bogus values, then those values overwrite the values taken from the environment variables and cluster creation fails. Only providing the credentials directly via the Terraform config parameters access_key_id and secret_access_key worked (either directly as strings or passed via variables).

Expected behavior:
I would expect to be able to leave out the access_key_id and secret_access_key when using environment variables to provide the credentials. The behavior that the specified options within the Terraform config override the values from the environment variables was expected behavior and I just tried it out since Terraform complained when leaving out those items from the config.

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

No branches or pull requests

1 participant