DataDog / datadog-cloudformation-macro

CloudFormation Macros by Datadog
Apache License 2.0
14 stars 22 forks source link

Decouple macro and Lambda Library versions #5

Closed hannah-sun closed 4 years ago

hannah-sun commented 4 years ago

What does this PR do?

Decouples the macro version from the Lambda Library versions for Python and Node.js. Users will need to specify which version of the Python and Node.js Lambda Library they would like the macro to attach with the new pythonLibraryVersion and nodeLibraryVersion parameters.

Motivation

This change allows users to upgrade their Lambda Library versions without having to upgrade the macro by redeploying a CloudFormation stack. The Lambda Library version is now not tied to the macro code, and instead uses the user provided value.

Testing Guidelines

Updated unit tests and deployed a sample stack through SAM with the macro on sandbox account.

Types of changes