Skip to content

Commit

Permalink
Add vpc cidr to region data
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 24, 2024
1 parent 11e169a commit b17ca38
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions infrastructure/somleng/core/ssm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
)
Expand All @@ -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
}
]
)
Expand Down

0 comments on commit b17ca38

Please sign in to comment.