diff --git a/modules/core/variables.tf b/modules/core/variables.tf index a422ca8f..8cf3e490 100644 --- a/modules/core/variables.tf +++ b/modules/core/variables.tf @@ -66,7 +66,7 @@ variable "vpc_cidr" { default = "10.158.0.0/16" } -// Convention is for the MSB of the third octect to be zero for public subnet and one for private +// Convention is for the MSB of the third octet to be zero for public subnet and one for private // subnets. variable "vpc_public_subnets_cidr" { @@ -78,7 +78,7 @@ variable "vpc_public_subnets_cidr" { variable "vpc_private_subnets_cidr" { description = "CIDR for each of the private subnets in the VPCs we want to create" type = "list" - default = [] + default = ["10.158.240.0/24", "10.158.241.0/24", "10.158.242.0/24"] } variable "vpc_database_subnets_cidr" { diff --git a/modules/core/vpc.tf b/modules/core/vpc.tf index 6a308054..ec5809ea 100644 --- a/modules/core/vpc.tf +++ b/modules/core/vpc.tf @@ -13,7 +13,8 @@ module "vpc" { private_subnets = "${var.vpc_private_subnets_cidr}" database_subnets = "${var.vpc_database_subnets_cidr}" - enable_nat_gateway = false + enable_nat_gateway = true + single_nat_gateway = true enable_vpn_gateway = false enable_dns_hostnames = true