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
The following Lambda typescript code should work even when the DD instrumentation and layer have been enabled. Variables assumeRoleArn and region are set higher up in the execution.
This STS code between the two log statements fails without any indication of why. Log level DEBUG doesn't provide any clue either.
Steps to Reproduce the Problem
Configure an IAM role that your Lambda can use to perform hypothetical work, and use code like I've provided above to assume that role during Lambda execution (assuming a role is required for tasks that can be cross-region and/or cross account, but this fails even when performing the work in one region/account).
Test your code without the DD instrumentation to be sure it works as expected. You should see that "httpStatusCode" in your CloudWatch logs.
Add the Datadog construct to your CDK stack and enable it for your Lambda. Set nodeLayerVersion: 106.
Hi @revanshine, I attempted to reproduce but was unsuccessful, I followed this video to configure the role, may you try following that and see if it resolves your issues?
Expected Behavior
The following Lambda typescript code should work even when the DD instrumentation and layer have been enabled. Variables assumeRoleArn and region are set higher up in the execution.
Actual Behavior
This STS code between the two log statements fails without any indication of why. Log level DEBUG doesn't provide any clue either.
Steps to Reproduce the Problem
nodeLayerVersion: 106
.Specifications
Trace
The text was updated successfully, but these errors were encountered: