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
func (cfg*sharedConfig) validateCredentialType() error {
// Only one or no credential type can be defined.if!oneOrNone(
len(cfg.SourceProfileName) !=0,
len(cfg.CredentialSource) !=0,
len(cfg.CredentialProcess) !=0,
len(cfg.WebIdentityTokenFile) !=0,
cfg.hasSSOConfiguration(),
) {
returnErrSharedConfigSourceCollision
}
returnnil
}
There's an open issue on the Go SDK for this; as far as I know it's the only SDK to raise an error when there are multiple credential source options defined in a profile. The credential_process entry can be disabled during generation with --no-credential-process, but without a change to the Go SDK, I don't see a solution to the problem. aws/aws-sdk-go#3763
The AWS SDK for Go has the following lines:
https://github.com/aws/aws-sdk-go/blob/4a3fa399d8948450087b360a1d82e8298eb1c25c/aws/session/shared_config.go#L397-L410
Which doesn't play nicely with the generated profiles in
~/.aws/config
:Repro code:
I've only just started using this tool so I don't yet have a solution on how to best fix this.
The text was updated successfully, but these errors were encountered: