Skip to content

feat: add additional_layers variable for extra Lambda layers#42

Merged
LorisFriedel merged 2 commits into
mainfrom
loris.friedel/extra-layers-OBSPLTF-1089
Apr 2, 2026
Merged

feat: add additional_layers variable for extra Lambda layers#42
LorisFriedel merged 2 commits into
mainfrom
loris.friedel/extra-layers-OBSPLTF-1089

Conversation

@LorisFriedel

Copy link
Copy Markdown
Member

Summary

  • Add additional_layers variable (list(string), default []) to allow attaching extra Lambda layers to the forwarder function
  • Modify the layers attribute to concat() the default forwarder layer with any additional layers

This enables consumers to attach the Datadog Lambda Extension (or other layers) alongside the forwarder layer without needing to override layer_arn.

Motivation

The aws-datadog-forwarder wrapper module in cloud-inventory needs to attach the Datadog Lambda Extension layer for Lambda telemetry. The current module only supports a single layer via layer_arn/layer_version, with no way to add supplementary layers.

Test plan

  • Existing tests pass (no behavioral change when additional_layers is empty)
  • Verify terraform plan with additional_layers set to a valid layer ARN

🤖 Generated with Claude Code

LorisFriedel and others added 2 commits April 2, 2026 15:00
Allow attaching additional Lambda layers (e.g., Datadog Lambda Extension)
to the forwarder function alongside the default forwarder layer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Document the new additional_layers variable in the Lambda Configuration
inputs table and add a usage example showing the Datadog Lambda Extension.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LorisFriedel LorisFriedel marked this pull request as ready for review April 2, 2026 14:11
@LorisFriedel LorisFriedel requested a review from a team as a code owner April 2, 2026 14:11
@LorisFriedel LorisFriedel added the enhancement New feature or request label Apr 2, 2026
@LorisFriedel LorisFriedel merged commit 33b19ae into main Apr 2, 2026
4 checks passed
@LorisFriedel LorisFriedel deleted the loris.friedel/extra-layers-OBSPLTF-1089 branch April 2, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants