Skip to content

feat: add additional_environment_variables for custom Lambda env vars#44

Merged
LorisFriedel merged 2 commits into
mainfrom
loris.friedel/additional-env-vars-OBSPLTF-1089
Apr 3, 2026
Merged

feat: add additional_environment_variables for custom Lambda env vars#44
LorisFriedel merged 2 commits into
mainfrom
loris.friedel/additional-env-vars-OBSPLTF-1089

Conversation

@LorisFriedel

Copy link
Copy Markdown
Member

Summary

  • Add additional_environment_variables variable (map(string), default {}) to allow setting custom environment variables on the forwarder Lambda function
  • Variables are merged last in the environment.variables block, so they take precedence over built-in variables on conflict

Companion to additional_layers from #42 — together they enable full customization of the forwarder Lambda (e.g., attaching the Datadog Lambda Extension and configuring it with DD_TRACE_SAMPLING_RULES).

Test plan

  • Existing tests pass (no behavioral change when additional_environment_variables is empty)
  • Verify terraform plan with custom env vars set

🤖 Generated with Claude Code

Allow setting additional environment variables on the forwarder Lambda
function. Merged last so they take precedence over built-in variables.
This enables configuring the Datadog Lambda Extension with settings like
DD_TRACE_SAMPLING_RULES without modifying the module itself.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LorisFriedel
LorisFriedel requested a review from a team as a code owner April 2, 2026 20:57
…riables

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LorisFriedel
LorisFriedel merged commit 8c70d62 into main Apr 3, 2026
4 checks passed
@LorisFriedel
LorisFriedel deleted the loris.friedel/additional-env-vars-OBSPLTF-1089 branch April 3, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants