Comments (7)
Well, I decided to rewrite my implementation without any module and the problem immediately become apparent. The resource google_compute_router_nat has block subnetwork that requires argument source_ip_ranges_to_nat with the following description:
(Required) List of options for which source IPs in the subnetwork should have NAT enabled. Supported values include: ALL_IP_RANGES, LIST_OF_SECONDARY_IP_RANGES, PRIMARY_IP_RANGE.
So my error was that I was trying to specify subnetwork's CIDR range (i.e. 10.10.0.0/24) in this argument while it only accepts specific values (i.e. ALL_IP_RANGES
, LIST_OF_SECONDARY_IP_RANGES
and PRIMARY_IP_RANGE
). Cloud-nat module README does not provide information about the possible values of the arguments into its subnetworks block and apparently there is no validation of the passed values, but anyway the problem is resolved now, so let this stay closed for good.
from terraform-google-cloud-nat.
@gdsotirov Glad you got it working and apologies for the confusion.
from terraform-google-cloud-nat.
This issue 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
from terraform-google-cloud-nat.
This is really not to be closed. I'm seeing these "changes" on a daily basis when applying and they are simply annoying. Can someone look into it?
from terraform-google-cloud-nat.
I recommend switching to the cloud-router module: https://github.com/terraform-google-modules/terraform-google-cloud-router
from terraform-google-cloud-nat.
OK @morgante, I'll try it next (working) week and I'll write back whether it solves the problem.
from terraform-google-cloud-nat.
Switching to cloud-router module is not the solution for the problem I reported @morgante, so this issue should not be closed IMHO.
from terraform-google-cloud-nat.
Related Issues (20)
- Endpoint-Independent Mapping default value should be false (not null) HOT 3
- max_ports_per_vm with dynamic allocation HOT 1
- Support for Terraform version 0.13.0 for vpc, cloud-router and cloud-nat modules HOT 5
- Cannot determine region.
- enable_endpoint_independent_mapping attribute not supported by module HOT 3
- log_config_enable doesn't have effect on v1.3.0 HOT 5
- Cloud Nat Module always changed value to default when tcp_established_idle_timeout_sec was set as number HOT 1
- new release / version tag after lint-failing file removed HOT 3
- How to create a NAT with static IP? HOT 1
- gke: failed to execute portforward in network HOT 1
- Support Dynamic Port Allocation HOT 17
- enable the option nat_ip_allocate_option= "MANUAL_ONLY" get error Incorrect condition type HOT 1
- support router tcp-time-wait-timeout setting HOT 5
- Unable To Use Google Compute Address For Cloud NAT HOT 1
- max_ports_per_vm not taken into account HOT 1
- var.nat_ip_allocate_option has to be set to false to be able to use MANUAL_ONLY HOT 1
- Dependency Dashboard
- Support for Dynamic Port Allocation HOT 3
- Support Max ports per VM setting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-google-cloud-nat.