`InvalidClientTokenId` when calling an API in a new opt-in region.
IntermediateTroubleshootingIAM and Access Errors
Answer
Likely causes → The region is disabled for the account or credentials are for the wrong partition.
Diagnose →
aws account get-region-opt-status --region-name ap-south-2
aws sts get-caller-identity --region ap-south-2
Fix →
- Enable the region:
aws account enable-region --region-name ap-south-2 - Wait for enablement
Prevent → Document region opt-ins in the landing zone.
More on IAM and Access Errors
`An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied` for a user who has S3 read access. What is wrong?Beginner`ExpiredToken: The security token included in the request is expired` in a long CI job. How do you fix it?Beginner`User: arn:aws:sts::111111111111:assumed-role/dev/bob is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::222222222222:role/deploy`. Why?Intermediate`An error occurred (AccessDenied) ... because no identity-based policy allows the s3:GetObject action` yet a bucket policy allows the user. Cross-account?IntermediateIAM policy validation: `MalformedPolicyDocument: Policy document should not specify a principal`. What happened?Intermediate`The security token included in the request is invalid` when using `aws` CLI.Beginner