Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley committed Apr 15, 2024
1 parent 3e98ddf commit f5642fe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/terraform-aws-alternat/lambda.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
locals {
autoscaling_func_env_vars = {
# Lambda function env vars cannot contain hyphens
for obj in var.vpc_az_maps
: replace(upper(obj.az), "-", "_") => join(",", obj.route_table_ids)
}
has_ipv6_env_var = { "HAS_IPV6" = var.lambda_has_ipv6 }
}

data "archive_file" "lambda" {
count = var.lambda_package_type == "Zip" ? 1 : 0
type = "zip"
Expand Down Expand Up @@ -36,15 +45,6 @@ resource "aws_lambda_function" "alternat_autoscaling_hook" {
}, var.tags)
}

locals {
autoscaling_func_env_vars = {
# Lambda function env vars cannot contain hyphens
for obj in var.vpc_az_maps
: replace(upper(obj.az), "-", "_") => join(",", obj.route_table_ids)
}
has_ipv6_env_var = { "HAS_IPV6" = var.lambda_has_ipv6 }
}

resource "aws_iam_role" "nat_lambda_role" {
name = var.nat_lambda_function_role_name == "" ? null : var.nat_lambda_function_role_name
name_prefix = var.nat_lambda_function_role_name == "" ? "alternat-lambda-role-" : null
Expand Down

0 comments on commit f5642fe

Please sign in to comment.