From 18c9ce7b8bd00e7dffcd283de70aafdafe799f6c Mon Sep 17 00:00:00 2001 From: smerle33 Date: Tue, 8 Oct 2024 17:33:20 +0200 Subject: [PATCH] feat(vpc): new subnet to fit in /16 cidr --- vpc.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vpc.tf b/vpc.tf index 82447bc..f6f2515 100644 --- a/vpc.tf +++ b/vpc.tf @@ -11,7 +11,7 @@ module "vpc" { version = "5.13.0" name = "${local.cluster_name}-vpc" - cidr = "10.0.0.0/8" + cidr = "10.0.0.0/16" # dual stack https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/v5.13.0/examples/ipv6-dualstack/main.tf @@ -31,13 +31,13 @@ module "vpc" { # first VM ci.jenkins.io "10.0.0.0/24", # 10.0.0.1 -> 10.0.0.254 (254 ips) # second for VM agent jenkins - "10.1.0.0/20", # 10.1.0.1 -> 10.1.15.254 (4094 ips) + "10.0.1.0/24", # 10.0.1.1 -> 10.0.1.254 (254 ips) # next for eks agents - "10.2.0.0/20", # 10.2.0.1 -> 10.2.15.254 (4094 ips) + "10.0.2.0/24", # 10.0.2.1 -> 10.0.2.254 (254 ips) ] public_subnets = [ # need at least one for the module (line 1085 : subnet_id = element(aws_subnet.public[*].id,var.single_nat_gateway ? 0 : count.index,)) #fake one - "10.254.0.0/24", # 10.254.0.1 -> 10.254.0.254 (254 ips) + "10.0.254.0/24", # 100.0.254.1 -> 10.0.254.254 (254 ips) ] # One NAT gateway per subnet (default)