Skip to content

InvalidClientTokenId: The security token included in the request is invalid (govcloud) #5755

@kuhe

Description

@kuhe

Checkboxes for prior research

Describe the bug

(title) separating this from #5749 on behalf of @gilesvessey

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

n/a

Reproduction Steps

# .aws/config
[profile target]
region = us-gov-east-1
# .aws/credentials
[default]
source_profile = target
role_arn = [MASKED]
external_id = [MASKED]
region = us-gov-east-1
[target]
aws_access_key_id = [MASKED]
aws_secret_access_key = [MASKED]
import { STS } from "@aws-sdk/client-sts";

const client = new STS({});

console.log(await client.getCallerIdentity({}));

Observed Behavior

InvalidClientTokenId: The security token included in the request is invalid

Expected Behavior

200 response

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.closed-for-stalenessp2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions