Skip to content

Commit

Permalink
feat: expose lambda_function_environment_variables (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlopo authored Jan 21, 2024
1 parent a11eee9 commit e5d7f4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ resource "aws_lambda_function" "firehose_lambda_transform" {
timeout = var.lambda_function_timeout
reserved_concurrent_executions = var.lambda_reserved_concurrent_executions

environment {
variables = var.lambda_function_environment_variables
}

dynamic "tracing_config" {
for_each = var.lambda_tracing_config == null ? [] : [1]
content {
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ variable "lambda_function_timeout" {
default = 180
}

variable "lambda_function_environment_variables" {
description = "Environment variables for the lambda function"
default = { }
}

variable "lambda_iam_policy_name" {
description = "Name of the IAM policy that is attached to the IAM Role for the lambda transform function"
type = string
Expand Down

0 comments on commit e5d7f4e

Please sign in to comment.