terraform-google-modules / terraform-google-cloud-nat

Creates and configures Cloud NAT
https://registry.terraform.io/modules/terraform-google-modules/cloud-nat/google
Apache License 2.0
81 stars 68 forks source link

added module enable var and set condition for validate #40

Closed Sajadorouji closed 3 years ago

Sajadorouji commented 4 years ago

Sometime we have multiple resources and some of them need use nat module and some not, with this we can implement validation to create nat resource on condition.

morgante commented 4 years ago

Sometime we have multiple resources and some of them need use nat module and some not, with this we can implement validation to create nat resource on condition.

I'm having trouble following why you would use this module in those cases? Perhaps the Cloud Router module is what you're looking for?

Sajadorouji commented 4 years ago

Cloud router inside the cloud-nat has enable variable. i use cloud-nat module to create cloud-nat but there are some cases that i want to decide based on other variable ex. project-name that cloud-nat should be created or not.

github-actions[bot] commented 3 years ago

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days