diff --git a/terraform/environments/apex/lambda.tf b/terraform/environments/apex/lambda.tf index aa79a90934c..3dd22ab1d93 100644 --- a/terraform/environments/apex/lambda.tf +++ b/terraform/environments/apex/lambda.tf @@ -17,6 +17,7 @@ function_name = local.functions handler = local.handlers role = module.iambackup.backuprole runtime = local.runtime +subnet_ids = data.aws_subnet.private_subnets_a.id tags = merge( diff --git a/terraform/environments/apex/modules/lambda/variables.tf b/terraform/environments/apex/modules/lambda/variables.tf index 63b7634abf5..7d13369176e 100644 --- a/terraform/environments/apex/modules/lambda/variables.tf +++ b/terraform/environments/apex/modules/lambda/variables.tf @@ -45,4 +45,9 @@ variable "runtime" { variable "security_grp_name" { type = string default = "" +} + +variable "subnet_ids" { + type =list(string) + default = [""] } \ No newline at end of file diff --git a/terraform/environments/apex/variables.tf b/terraform/environments/apex/variables.tf index 977af7c3079..39257a76ebb 100644 --- a/terraform/environments/apex/variables.tf +++ b/terraform/environments/apex/variables.tf @@ -31,4 +31,9 @@ variable "runtime" { variable "security_grp_name" { type = string default = "" +} + +variable "subnet_ids" { + type =list(string) + default = [""] } \ No newline at end of file