AWS Single Sign On (SSO) uses AWS CLI v2 and stores profiles in directory ~/.aws/sso and refer them here ~/.aws/config. It does not uses file ~/.aws/credentials
The credstash terraform provider expects the profile in ~/.aws/credentials and if not configured throws below error.
Error: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
It would be good if it can also read profiles configured in ~/.aws/config which can also refer to credentials in ~/.aws/sso directory.
Workaround
The current workaround is to get the AWS temp keys and store it as a profile in ~/.aws/credentials
Environment
Problem
AWS Single Sign On (SSO) uses AWS CLI v2 and stores profiles in directory
~/.aws/sso
and refer them here~/.aws/config
. It does not uses file~/.aws/credentials
The
credstash
terraform provider expects the profile in~/.aws/credentials
and if not configured throws below error.It would be good if it can also read profiles configured in
~/.aws/config
which can also refer to credentials in~/.aws/sso
directory.Workaround
The current workaround is to get the AWS temp keys and store it as a profile in
~/.aws/credentials
Possibly Related