From 5660082dfb85862c06d4f9542f9c3ce236067847 Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Wed, 26 Jun 2024 16:45:53 +0200 Subject: [PATCH] feat(network): using different CIDR for the prod and staging environments --- terraform/res_network.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/res_network.tf b/terraform/res_network.tf index 3253bc7f6..d87d70899 100644 --- a/terraform/res_network.tf +++ b/terraform/res_network.tf @@ -1,5 +1,5 @@ locals { - vpc_cidr = "10.0.0.0/16" + vpc_cidr = module.this.stage == "prod" ? "10.0.0.0/16" : "13.0.0.0/16" vpc_azs = slice(data.aws_availability_zones.available.names, 0, 3) vpc_flow_s3_bucket_name = substr("vpc-flow-logs-${module.this.id}-${random_pet.this.id}", 0, 63) }