$Env:AWS_PROFILE disregarded when set to a profile defined in ~/.aws/config ("No valid credential sources...") #10066
Labels
provider
Pertains to the provider itself, rather than any interaction with AWS.
Milestone
Community Note
Terraform Version
Terraform v0.12.8
Affected Resource(s)
N/A—Provider will not initialize
Environment
Terraform Configuration Files
Debug Output
https://gist.github.com/bgshacklett/3f205d2540dd9a42ae540cf7192a11f7
Panic Output
Expected Behavior
Terraform successfully generates a plan
Actual Behavior
An error is generated:
Steps to Reproduce
~/.aws/config
:terraform plan
Important Factoids
aws sts get-caller-identity
successfully:$Env:AWS_PROFILE
to a profile configured in.aws/credentials
(Lab-LabUser
in this case) allows me to run a plan successfully.k8s-lab
in the provider allows me to run a plan successfully.References
n/a
The text was updated successfully, but these errors were encountered: