From b17ca381ee6e0ebe3230623773a2286c2fc7a938 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Tue, 24 Sep 2024 08:36:39 +0700 Subject: [PATCH] Add vpc cidr to region data --- infrastructure/somleng/core/ssm.tf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/infrastructure/somleng/core/ssm.tf b/infrastructure/somleng/core/ssm.tf index 0d793087..c6a763b0 100644 --- a/infrastructure/somleng/core/ssm.tf +++ b/infrastructure/somleng/core/ssm.tf @@ -8,14 +8,16 @@ resource "aws_ssm_parameter" "somleng_regions_production" { identifier = module.hydrogen_region.aws_region, human_name = "South East Asia (Singapore)", group_id = 1, - nat_ip = module.hydrogen_region.vpc.nat_public_ips[0] + nat_ip = module.hydrogen_region.vpc.nat_public_ips[0], + vpc_cidr = module.hydrogen_region.vpc.vpc_cidr_block }, { alias = module.helium_region.alias, identifier = module.helium_region.aws_region, human_name = "North America (N. Virginia, USA)", group_id = 2, - nat_ip = module.helium_region.vpc.nat_public_ips[0] + nat_ip = module.helium_region.vpc.nat_public_ips[0], + vpc_cidr = module.helium_region.vpc.vpc_cidr_block } ] ) @@ -31,14 +33,16 @@ resource "aws_ssm_parameter" "somleng_regions_staging" { identifier = module.hydrogen_region.aws_region, human_name = "South East Asia (Singapore)", group_id = 1, - nat_ip = module.hydrogen_region.vpc.nat_public_ips[0] + nat_ip = module.hydrogen_region.vpc.nat_public_ips[0], + vpc_cidr = module.hydrogen_region.vpc.vpc_cidr_block }, { alias = module.helium_region.alias, identifier = module.helium_region.aws_region, human_name = "North America (N. Virginia, USA)", group_id = 2, - nat_ip = module.helium_region.vpc.nat_public_ips[0] + nat_ip = module.helium_region.vpc.nat_public_ips[0], + vpc_cidr = module.helium_region.vpc.vpc_cidr_block } ] )