Open pdguru81 opened 2 months ago
Hi @pdguru81 - thanks for reaching out.
Can you please provide a minimal reproducible code for us to further review this behavior? I wasn't able to reproduce the issue on my end or find any outstanding issue reports.
This issue seems to be caused by a backwards incompatibility of the recent versions of the sdk clients with older version of the @aws-sdk/core. For us, the issue was caused by having a client-sqs with v3.620 in one layer, and then client-sts with v3.470 in another layer, and the client from the first layer tries to call the @aws-sdk/core from the second layer and throws this error.
Checkboxes for prior research
Describe the bug
When I attempt tp instantiate system params client, I get the error below on lambda nodejs 18
SDK version number
@aws-sdk/client-ssm@3.603.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
18.20.2
Reproduction Steps
Attempt to call SSMClient on lambda 18.2.0
Observed Behavior
This call fails:
const ssm = new SSMClient({ region: process.env.REGION });
Expected Behavior
It should instantiate the SSMClient without errors
Possible Solution
No response
Additional Information/Context
No response