diff --git a/terraform-modules/aws/vpc/main.tf b/terraform-modules/aws/vpc/main.tf index 7500b2d64..055f05a2c 100644 --- a/terraform-modules/aws/vpc/main.tf +++ b/terraform-modules/aws/vpc/main.tf @@ -23,6 +23,8 @@ module "vpc" { enable_dns_hostnames = var.enable_dns_hostnames enable_dns_support = var.enable_dns_support + create_elasticache_subnet_route_table = var.create_elasticache_subnet_route_table + public_subnet_tags = { "kubernetes.io/cluster/${var.cluster_name}" = "shared" "kubernetes.io/role/elb" = "1" diff --git a/terraform-modules/aws/vpc/variables.tf b/terraform-modules/aws/vpc/variables.tf index 6680037b0..ff051d998 100644 --- a/terraform-modules/aws/vpc/variables.tf +++ b/terraform-modules/aws/vpc/variables.tf @@ -74,3 +74,9 @@ variable "external_nat_ip_ids" { type = list(string) default = [] } + +variable "create_elasticache_subnet_route_table" { + description = "Controls if separate route table for elasticache should be created" + type = bool + default = true +}