The security token included in the request is invalid
Jump to navigation
Jump to search
Error: configuring Terraform AWS Provider: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: 12345, api error InvalidClientTokenId: The security token included in the request is invalid │ with provider["registry.terraform.io/hashicorp/aws"], │ on main.tf line 4, in provider "was": │ 4: provider "aws" { │
Solution: verify region in variables.tf match your ~/.aws/config region
Related
See also
- AWS STS
(sts:)
,aws sts
[get-session-token
|get-caller-identity
|assume-role | assume-role-with-web-identity | assume-role-with-saml | get-access-key-info ]
- AWS Security Token Service (STS),
aws sts, aws iam set-security-token-service-preferences
, AWS bearer tokens,sts.amazonaws.com, AssumedRoleUser
Advertising: