DataDog / datadog-cloudformation-macro

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

Add support for Graviton2 powered Lambdas #48

Closed matthias-pichler closed 3 years ago

matthias-pichler commented 3 years ago

Expected Behavior

Since lambdas now support both the x86_64 and arm64 architectures there now exist two different lambda layers for the extension: Datadog-Extension and Datadog-Extension-ARM

The macro should read the architecture of the lambda function and add the correct layer

Actual Behavior

Only the x86_64 layer is suported

Steps to Reproduce the Problem

  1. create a cloudformation stack with a lambda runnin on Graviton2
  2. configure extensionLayerVersion: 11
  3. deploy
  4. invoke lambda

Specifications

For the Datadog Serverless Macro:

hghotra commented 3 years ago

Thanks @matthias-pichler-warrify! I merged your PR.