Adrián Mouly
05/09/2022, 3:10 AMsetDefaultFunctionProps
to configure Epsagon env-vars for all my functions. Now I want to setup one specific env-var called EPSAGON_HANDLER
which should contain the path of my handler.
Is there a way to “get” this value for each lambda using this function?
Or should I set this env-var for each function individually?Frank
Frank
lambda.Function
in ur app, and make changes to the underlying CloudFormation directly.Frank
if (node instanceof lambda.Function) {
node.addEnvironment("EPSAGON_HANDLER", node.defaultChild.handler);
}
Adrián Mouly
05/11/2022, 7:15 PM