Closed cscetbon closed 1 year ago
Hi @cscetbon thanks for opening this and including all of these details
I had a Node SAM app handy and tried to reproduce with that and your example code but my function got the DD_ENV
set to dev
as expected. I suspect there is something unexpected caused by the !Ref but need to dig in more. I'm going to try again with Python and will update you here
Trying again with Python I am able to reproduce. Currently looking into the fix and will link here when it's ready
Hi @cscetbon this should be fixed in the latest release https://github.com/DataDog/datadog-cloudformation-macro/releases/tag/serverless-macro-0.7.2
Thanks again for opening and please let us know if you run into any other issue
Expected Behavior
DD_ENV should be set from env parameter
Actual Behavior
DD_ENV is not set and no tags are added as well to the lambdas
Steps to Reproduce the Problem
sam init
template.yaml
content:My
src/app.py
contains a simple dummy handler(not relevant)Specifications for the Datadog Serverless Macro:
You can see that DD_ENV is missing