Skip to content

Comments

feat: Adding support for regional nat gateway#1270

Open
Balvinder-1995 wants to merge 8 commits intoterraform-aws-modules:masterfrom
Balvinder-1995:regional_nat
Open

feat: Adding support for regional nat gateway#1270
Balvinder-1995 wants to merge 8 commits intoterraform-aws-modules:masterfrom
Balvinder-1995:regional_nat

Conversation

@Balvinder-1995
Copy link
Contributor

@Balvinder-1995 Balvinder-1995 commented Dec 4, 2025

Description

Adding support for regional NAT Gateway which is introduced in aws provider version 6.24.0

Motivation and Context

Fixes: #1269

Breaking Changes

No breaking changes.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request
  • I provisioned the VPC and NAT Gateway using the latest published module version, then switched to the code in this PR. I confirmed that there is no impact on existing infrastructure unless the new boolean variables are explicitly enabled.

@Balvinder-1995 Balvinder-1995 changed the title feat: adding support for regional nat gateway feat: Adding support for regional nat gateway Dec 4, 2025
@Balvinder-1995 Balvinder-1995 marked this pull request as draft December 4, 2025 18:19
@Balvinder-1995 Balvinder-1995 marked this pull request as ready for review December 7, 2025 10:39
@Balvinder-1995
Copy link
Contributor Author

@antonbabenko @bryantbiggs can you please help review this PR to add support for regional NAT gateway.

@jeenadeepak
Copy link

@antonbabenko / @bryantbiggs : any update on this?

@aruetten
Copy link

aruetten commented Jan 9, 2026

Hi,

really looking forward to have this merged. Thanks a lot for all your work.

There is just one thing I would like to mention:

The docu states:

  1. Cost Considerations: Regional NAT Gateways are charged per hour and per GB processed, similar to zonal NAT Gateways, but you only pay for one NAT Gateway instead of multiple.

Based on my understanding of this feature, this can be misleading.
While it's true that you would only pay for "one NAT Gateway instead of multiple", still the number is multiplied by the number of AZs the regional NAT GW is attached to.

See:

Regional NAT Gateway Pricing
If you choose to create a NAT gateway with regional availability in your VPC, you are charged for each hour that the NAT Gateway is configured in each availability zone. For example, if your regional NAT is running across three Availability Zones(AZs) for one hour, you'll be billed for three 'NAT Gateway-hours'.
From: https://aws.amazon.com/vpc/pricing/

To my understanding this makes the pricing comparable to a classic NAT GW with the same amount of AZs configured.

@hongyiweiwu01
Copy link

Hi! Just bumping this and see if it could be merged? Thank you!

@leonardocaylent
Copy link

@Balvinder-1995 Did you test how the changes affect moving from a normal zonal NAT Gateway deployment in 2 azs with the version 6.6.0 to your changes with a regional NAT gateway in this 2 scenarios?
1)Normal mode (Static EIPs)
2)Automatic mode

I think it would be great to look how those 2 terraform plans look like to understand better the impact.

Also, is the intention to let the normal deployment to always use ZNATs instead of RNATs? ( I see the default variable is set as availability_mode = null but I'm asking because maybe we need to also update the other examples to have consistency)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Regional Nat Gateway

6 participants