Code Monkey home page Code Monkey logo

Comments (7)

gdsotirov avatar gdsotirov commented on August 11, 2024 1

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.

morgante avatar morgante commented on August 11, 2024 1

@gdsotirov Glad you got it working and apologies for the confusion.

from terraform-google-cloud-nat.

github-actions avatar github-actions commented on August 11, 2024

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.

gdsotirov avatar gdsotirov commented on August 11, 2024

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.

morgante avatar morgante commented on August 11, 2024

I recommend switching to the cloud-router module: https://github.com/terraform-google-modules/terraform-google-cloud-router

from terraform-google-cloud-nat.

gdsotirov avatar gdsotirov commented on August 11, 2024

OK @morgante, I'll try it next (working) week and I'll write back whether it solves the problem.

from terraform-google-cloud-nat.

gdsotirov avatar gdsotirov commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.