2026-05-25
GitHub | aws/aws-sdk-js-v3
> Seems like a general AWS SDK issue in Lambda only. > > We get this for SecretsManager SDK. > > AI tooling recommends moving the instantiation inside the execution context, but that hasn't worked, which is very weird - that signals some underlying cache behaviour that we can't control outside of the execution context? > > None of our latency logs point to any kind of delay even close to 5 minutes: I'm working on high throughput, fast acting lambdas by design ~10-100ms. > > This is contributing about ~4,000 errors a week across our ecosystem out the moment. A real noise issue. We found the issue actually: it was a Datadog agent / dependency in our lambdas. We updated the setup and the errors disappeared. We're not getting these errors now with a standard SDK V3 setup instantiated outside of execution context.