Skip to content

Commit

Permalink
fix env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley committed Apr 10, 2024
1 parent 167d9f1 commit 950e770
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/terraform-aws-alternat/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ resource "aws_lambda_function" "alternat_autoscaling_hook" {
environment {
variables = merge(
local.autoscaling_func_env_vars,
local.has_ipv6_env_var,
var.lambda_environment_variables,
)
}
Expand Down Expand Up @@ -152,11 +151,15 @@ resource "aws_lambda_function" "alternat_connectivity_tester" {
}

environment {
variables = merge({
ROUTE_TABLE_IDS_CSV = join(",", each.value.route_table_ids),
PUBLIC_SUBNET_ID = each.value.public_subnet_id
CHECK_URLS = join(",", var.connectivity_test_check_urls)
}, var.lambda_environment_variables)
variables = merge(
{
ROUTE_TABLE_IDS_CSV = join(",", each.value.route_table_ids),
PUBLIC_SUBNET_ID = each.value.public_subnet_id
CHECK_URLS = join(",", var.connectivity_test_check_urls)
},
local.has_ipv6_env_var,
var.lambda_environment_variables,
)
}

vpc_config {
Expand Down

0 comments on commit 950e770

Please sign in to comment.