diff --git a/aws_data.tf b/aws_data.tf index d3b4207..d3f0127 100644 --- a/aws_data.tf +++ b/aws_data.tf @@ -26,6 +26,8 @@ data "aws_subnets" "lb-subnets" { } } locals { + container_subnets_name = var.subnets_name + lb_subnets_name = "*-private-lb-*" base_arn = format("arn:%v:%%v:%v:%v:%%v:%%v", data.aws_arn.current.partition, data.aws_region.current.name, data.aws_caller_identity.current.account_id) iam_arn = format("arn:%v:iam::%v:%%v", data.aws_arn.current.partition, data.aws_caller_identity.current.account_id) common_arn = format("arn:%v:%%v:%v:%v:%%v", diff --git a/variables.tf b/variables.tf index b9043eb..34bb5d4 100644 --- a/variables.tf +++ b/variables.tf @@ -32,6 +32,12 @@ variable "subnets_name" { default = "*-container-*" } +variable "lb_subnets_name" { + description = "Define the name of the subnets to be used by this cluster" + type = string + default = "*-container-*" +} + variable "vpc_domain_name" { description = "The DNS domain name of the vpc the cluster is in." type = string