Skip to content

Conversation

@j4zzcat
Copy link

@j4zzcat j4zzcat commented Aug 22, 2025

There are scenarios where downstream components require the NAT Gateway IDs, e.g., when wiring the routing for a network firewall. Exposing them makes the subnet_stats_map more complete and has little risk.

Changes

  • Added a local variables az_public_nat_gateway_ids_map that hold a map of NAT gatway IDs by AZ. For example:
az_public_nat_gateway_ids_map = {
  "us-east-1a" = ["nat-1", "nat-2"]
  "us-east-1b" = ["nat-3"]
}
  • This is then added to the existing subnet stat maps, named_private_subnets_stats_map and named_public_subnets_stats_map.

Note: based on @aknysh code.

@j4zzcat j4zzcat requested review from a team as code owners August 22, 2025 22:45
@j4zzcat j4zzcat requested review from Gowiem and johncblandii August 22, 2025 22:45
@mergify mergify bot added the triage Needs triage label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant