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 DD_LAMBDA_HANDLER environment variable is forcibly overridden with the value of
the function defaultChild.handler, which for a container lambda function is undefined (and has to be ´undefined`).
Synth and deploy works, but the DD_LAMBDA_HANDLER env variable has disappeared, so function cant run.
From reading the code I could figure out that I should disable the redirect. But it was quite hard to find out.
There is documentation for how to use CDK and how to install the extension in a container but not how to combine the two.
I would expect that doing what I did should cause error on synth, or the redirect would be disabled by default if function is configure with image (func.runtime.runtimeEquals(Runtime.FROM_IMAGE).
Good thing you keep this open source, so one can figure out what's happening :D
Steps to Reproduce the Problem
write the code
run the code
be confused
Specifications
construct version v2-1.16.1
The text was updated successfully, but these errors were encountered:
Found another thing related to image based lambdas. You prepend the "LAMBDA_TASK_ROOT" to the "handler" when including it. We have a common image where we are bundling code for many lambdas, so we don't set the env var in the image (instead we set the working directory in the lambda image config), and it is reserved, so it can be set in the configuration. Found a workaround for this as well, by setting the "DD_LAMBDA_HANDLER" to a full path /full/path/to/the/file.handler. Not sure if it falls under the same image lambda pitfalls umbrella.
Expected Behavior
The following code;
should work (or break).
Actual Behavior
The
DD_LAMBDA_HANDLER
environment variable is forcibly overridden with the value ofthe function defaultChild.handler, which for a container lambda function is
undefined
(and has to be ´undefined`).Synth and deploy works, but the DD_LAMBDA_HANDLER env variable has disappeared, so function cant run.
datadog-cdk-constructs/src/redirect.ts
Line 48 in 0e1d841
From reading the code I could figure out that I should disable the redirect. But it was quite hard to find out.
There is documentation for how to use CDK and how to install the extension in a container but not how to combine the two.
I would expect that doing what I did should cause error on synth, or the redirect would be disabled by default if function is configure with image (
func.runtime.runtimeEquals(Runtime.FROM_IMAGE
).Good thing you keep this open source, so one can figure out what's happening :D
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: