Terraform-provider-google: Add support for network endpoint groups

Created on 16 Oct 2018  ·  9Comments  ·  Source: hashicorp/terraform-provider-google


Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

We should add support for creating and managing network endpoint groups via Terraform.

REST API: https://cloud.google.com/compute/docs/reference/rest/beta/networkEndpointGroups/

New or Affected Resource(s)

  • google_compute_network_endpoint_group
  • google_compute_network_endpoint

Potential Terraform Configuration

google_compute_network_endpoint_group "mine" {
  name = "my-neg"
  description = "new-neg"
  network = "${google_compute_network.mine.selfLink}"
  subnetwork = "${google_compute_subnetwork.mysubnet.selfLink}"
  defaultPort = "90"
}

google_compute_network_endpoint "vm1" {
  endpoint_group = "${google_compute_network_endpoint_group.mine.id}"
  instance = "${google_compute_instance.mine.name}"
  port = "100"
  ipAddress = "192.167.3.10"
}
enhancement

Most helpful comment

This has been assigned to "modular-magician" for a few months yet but has yet to be autogenerated (I assume that means using the REST API to dynamically generate some terraform implementation?) Is there something I could do to help? I'm using network endpoint groups currently and I'd really like to manage them with terraform.

All 9 comments

This has been assigned to "modular-magician" for a few months yet but has yet to be autogenerated (I assume that means using the REST API to dynamically generate some terraform implementation?) Is there something I could do to help? I'm using network endpoint groups currently and I'd really like to manage them with terraform.

Hey @josiahp, sorry that it's taking so long! The code is all ready to go, but there's an issue with the API itself that I'm waiting to get fixed. Once the holidays are over, I'll ping that team again to see if they have an ETA.

@danawillow Hello! Did this ever get fixed?

The issue with the API got fixed, but I haven't finished the resource yet. I'm taking a break from Terraform until late April, and I have it on my plate for when I get back.

@danawillow is there a work-in-progress branch that we can toy with?

Sure- https://github.com/danawillow/magic-modules/commit/25fe50d193f9d1a0183bce35e2c93965ccc8db50 (https://github.com/danawillow/magic-modules/tree/tf-2263). It'll need to be rebased on master, and there may have been changes to what gets put in the terraform.yaml file or the example, but you can go from there. https://github.com/GoogleCloudPlatform/magic-modules has more information on how to generate Terraform code with Magic Modules.

@emilymye this can be closed now, right?

Pretty sure there's nothing left to do here, but feel free to open if I'm mistaken.

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

Was this page helpful?
0 / 5 - 0 ratings