Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add support for google_compute_router_nat_address to improve NAT IPs lifecycle handling #139

Open
Byh0ki opened this issue Dec 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Byh0ki
Copy link

Byh0ki commented Dec 31, 2024

TL;DR

The google TF provider has a compute_router_nat_address resource that handles the NAT IPs lifecycle automatically for a given compute_router_nat instance. It could be nice to provide this as an option alongside the already existing nat_ips & drain_nat_ips parameters in the nats object.

Terraform Resources

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_router_nat_address

Detailed design

Design remains open to discussion but the idea would be to give the user a flag to either enable or disable the `compute_router_nat_address` usage when the `nat_ip_allocate_option` is set or defaults to `MANUAL_ONLY`. If the flag is `true`, we would then use the `initial_nat_ips` parameters in the `google_compute_router_nat` resource instead of `nat_ips` & `drain_nat_ips` and add an additional `google_compute_router_nat_address` bloc. A great example is available in the resource documentation page.

Additional information

No response

@Byh0ki Byh0ki added the enhancement New feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant