temporalio/temporal · error
unknown AWS credential provider specified: %+v. Accepted opt
Error message
unknown AWS credential provider specified: %+v. Accepted options are 'static', 'environment' or 'aws-sdk-default'
What it means
Error "unknown AWS credential provider specified: %+v. Accepted options are 'static', 'environment' or 'aws-sdk-default'" thrown in temporalio/temporal.
Source
Thrown at common/persistence/visibility/store/elasticsearch/client/aws.go:97
envConfig, err := awsconfig.NewEnvConfig()
if err != nil {
return nil, err
}
credsProvider = credentials.NewStaticCredentialsProvider(
envConfig.Credentials.AccessKeyID,
envConfig.Credentials.SecretAccessKey,
envConfig.Credentials.SessionToken,
)
case "aws-sdk-default":
cfg, err := awsconfig.LoadDefaultConfig(context.Background(),
awsconfig.WithRegion(config.Region),
)
if err != nil {
return nil, err
}
credsProvider = cfg.Credentials
default:
return nil, fmt.Errorf("unknown AWS credential provider specified: %+v. Accepted options are 'static', 'environment' or 'aws-sdk-default'", config.CredentialProvider)
}
return &http.Client{
Transport: &awsSigningTransport{
creds: credsProvider,
signer: v4signer.NewSigner(),
region: config.Region,
service: "es",
wrapped: http.DefaultTransport,
},
}, nil
}
View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at common/persistence/visibility/store/elasticsearch/client/aws.go:97 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/707cb02bcbad880b.
Report an issue: GitHub.