Creates a CloudFormation macro/transform for customers deploying lambda functions using SAM, CDK, or raw CloudFormation templates. The macro attaches the Datadog Lambda Layers for node.js and python functions by modifying the CloudFormation template.
Customers can also:
add service and env tags to their lambda function resources
provide a forwarder arn to subscribe the lambdas to
Added unit tests, also deployed and tested the macro on sandbox account with sample lambdas deployed through SAM & CDK. (Will do additional testing for deploying through raw CloudFormation.)
Additional Notes
The macro logic is a lambda function itself, and is currently deployed through the serverless framework. Since this is for SAM/CDK/CloudFormation users, there will be a followup PR that adds other templates so customers don't have to use the serverless framework to deploy the macro resource on their AWS accounts.
What does this PR do?
Creates a CloudFormation macro/transform for customers deploying lambda functions using SAM, CDK, or raw CloudFormation templates. The macro attaches the Datadog Lambda Layers for node.js and python functions by modifying the CloudFormation template.
Customers can also:
service
andenv
tags to their lambda function resourcesMotivation
We currently have the serverless plugin to help instrument customers' lambda functions, and we would like to do the same for customers using SAM/CDK/CloudFormation. Ticket at https://datadoghq.atlassian.net/browse/SLS-397
Testing Guidelines
Added unit tests, also deployed and tested the macro on sandbox account with sample lambdas deployed through SAM & CDK. (Will do additional testing for deploying through raw CloudFormation.)
Additional Notes
The macro logic is a lambda function itself, and is currently deployed through the serverless framework. Since this is for SAM/CDK/CloudFormation users, there will be a followup PR that adds other templates so customers don't have to use the serverless framework to deploy the macro resource on their AWS accounts.