You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the version 3.502.0, the inner STSClient doesn't longer use the provided region in the DynamoDBClient instance when we use assume role with web identity.
SDK version number
@aws-sdk/client-dynamodb@3.502.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.9.0
Reproduction Steps
Configure envs like AWS_REGION (eu-west-3 by example), AWS_ROLE_ARN, AWS_STS_REGIONAL_ENDPOINTS and AWS_WEB_IDENTITY_TOKEN_FILE to use assume role with web identity.
Create a DynamoDBClient instance like new DynamoDBClient()
Perform any command.
Observed Behavior
The STSClient will use the us-east-1 region by default.
Expected Behavior
The STSClient should use the region specified in AWS_REGION by default (like it was before the version 3.502.0).
Possible Solution
Downgrade to 3.501.0.
Or specify explicitly the region with new DynamoDBClient({ credentials: fromNodeProviderChain({ clientConfig: { region: process.env.AWS_REGION } }) }).
Additional Information/Context
Still doesn't work with 3.514.0
The text was updated successfully, but these errors were encountered:
The fix should be released in the next version expected later today as v3.515.0.
kuhe
added
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Feb 15, 2024
kuhe
added
closing-soon
This issue will automatically close in 4 days unless further comments are made.
and removed
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
labels
Feb 16, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
Since the version 3.502.0, the inner STSClient doesn't longer use the provided region in the DynamoDBClient instance when we use assume role with web identity.
SDK version number
@aws-sdk/client-dynamodb@3.502.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.9.0
Reproduction Steps
eu-west-3
by example), AWS_ROLE_ARN, AWS_STS_REGIONAL_ENDPOINTS and AWS_WEB_IDENTITY_TOKEN_FILE to use assume role with web identity.new DynamoDBClient()
Observed Behavior
The STSClient will use the
us-east-1
region by default.Expected Behavior
The STSClient should use the region specified in AWS_REGION by default (like it was before the version 3.502.0).
Possible Solution
Downgrade to 3.501.0.
Or specify explicitly the region with
new DynamoDBClient({ credentials: fromNodeProviderChain({ clientConfig: { region: process.env.AWS_REGION } }) })
.Additional Information/Context
Still doesn't work with
3.514.0
The text was updated successfully, but these errors were encountered: