{"record":{"id":"707cb02bcbad880b","repo":"temporalio/temporal","slug":"unknown-aws-credential-provider-specified-v-ac","errorCode":null,"errorMessage":"unknown AWS credential provider specified: %+v. Accepted options are 'static', 'environment' or 'aws-sdk-default'","messagePattern":"unknown AWS credential provider specified: %\\+v\\. Accepted options are 'static', 'environment' or 'aws-sdk-default'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/persistence/visibility/store/elasticsearch/client/aws.go","lineNumber":97,"sourceCode":"\t\tenvConfig, err := awsconfig.NewEnvConfig()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tcredsProvider = credentials.NewStaticCredentialsProvider(\n\t\t\tenvConfig.Credentials.AccessKeyID,\n\t\t\tenvConfig.Credentials.SecretAccessKey,\n\t\t\tenvConfig.Credentials.SessionToken,\n\t\t)\n\tcase \"aws-sdk-default\":\n\t\tcfg, err := awsconfig.LoadDefaultConfig(context.Background(),\n\t\t\tawsconfig.WithRegion(config.Region),\n\t\t)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tcredsProvider = cfg.Credentials\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unknown AWS credential provider specified: %+v. Accepted options are 'static', 'environment' or 'aws-sdk-default'\", config.CredentialProvider)\n\t}\n\n\treturn &http.Client{\n\t\tTransport: &awsSigningTransport{\n\t\t\tcreds:   credsProvider,\n\t\t\tsigner:  v4signer.NewSigner(),\n\t\t\tregion:  config.Region,\n\t\t\tservice: \"es\",\n\t\t\twrapped: http.DefaultTransport,\n\t\t},\n\t}, nil\n}\n","sourceCodeStart":79,"sourceCodeEnd":110,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/persistence/visibility/store/elasticsearch/client/aws.go#L79-L110","documentation":"Error \"unknown AWS credential provider specified: %+v. Accepted options are 'static', 'environment' or 'aws-sdk-default'\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/persistence/visibility/store/elasticsearch/client/aws.go:97 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}