You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
provider "aws" {
version = "2.35.0"
region = "us-west-2"
shared_credentials_file = "path_to_some_non_existing_file"
}
If there is a valid credentials file at ~/.aws/credentials, terraform will use that instead of giving an error on the path_to_some_non_existing_file.
I tried to debug the problem a little bit and found out that ~/.aws/credentials is loaded in GetCredentialsFromSession when the loading of the credentials file fails.
I don't totally understand the logic behind this code so unfortunately I am not able to propose a solution. GetCredentialsFromSession was introduced in #5. @YakDriver could you please have a look?
The text was updated successfully, but these errors were encountered:
Consider the following terraform file to be used with https://github.com/terraform-providers/terraform-provider-aws:
If there is a valid credentials file at
~/.aws/credentials
, terraform will use that instead of giving an error on thepath_to_some_non_existing_file
.I tried to debug the problem a little bit and found out that
~/.aws/credentials
is loaded inGetCredentialsFromSession
when the loading of the credentials file fails.aws-sdk-go-base/awsauth.go
Line 301 in 91fe567
I don't totally understand the logic behind this code so unfortunately I am not able to propose a solution.
GetCredentialsFromSession
was introduced in #5. @YakDriver could you please have a look?The text was updated successfully, but these errors were encountered: