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

terraform ignores the value of AWS_PROFILE #19

Open
chryswoods opened this issue Dec 9, 2020 · 0 comments
Open

terraform ignores the value of AWS_PROFILE #19

chryswoods opened this issue Dec 9, 2020 · 0 comments
Labels
AWS bug Something isn't working good first issue Good for newcomers

Comments

@chryswoods
Copy link
Member

When run from the command line, terraform ignores the value of the AWS_PROFILE environment variable. This means that the "default" AWS profile is used, instead of the profile chosen by the user. The CitC instance is created in the "wrong" AWS account, leaving the user open to unexpected spend.

The best fix would be to either have a confirmation or explicit setting of AWS_PROFILE before running, or to double check that the profile used by terraform is the same one that the "aws" cli uses. I think this would also impact, e.g. default regions (I had expected to see the cluster go in us-east-1 in my AWS_PROFILE account, but instead it went into eu-west-1 in my default account)

@milliams milliams added AWS bug Something isn't working good first issue Good for newcomers labels Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AWS bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants