Code Monkey home page Code Monkey logo

Comments (4)

morgante avatar morgante commented on August 11, 2024 1

Your assessment is correct, it looks like the nat_ips only passed back the input IPs (if any).

How are you looking up the IPs using a data source?

from terraform-google-cloud-nat.

dddomin3 avatar dddomin3 commented on August 11, 2024

Oh I just build the nat gateway resource, and use the auto-gened name, and pull it up that way.

data "google_compute_address" "my_address" {
  name = "foobar"
}

Not a elegant solution, sadly... I know ip labels are supported in the beta provider, if you're looking for guidance for a solution, perhaps leveraging those could work? I'm just speculating, never looked into the provider code directly so definitely take it with a grain of salt.

from terraform-google-cloud-nat.

morgante avatar morgante commented on August 11, 2024

Got it. I think the most elegant solution would be adding it to the provider (please open an issue here for that).

As an interim solution I'd be happy to review a PR which includes this data source and merges it into the nat IP output.

from terraform-google-cloud-nat.

imrannayer avatar imrannayer commented on August 11, 2024

Provider support needed. hashicorp/terraform-provider-google#7469

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.