Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: google_compute_vpc_network_peer #178

Closed
mtohmaz opened this issue Jul 6, 2017 · 4 comments · Fixed by #259
Closed

Feature: google_compute_vpc_network_peer #178

mtohmaz opened this issue Jul 6, 2017 · 4 comments · Fixed by #259
Assignees

Comments

@mtohmaz
Copy link

mtohmaz commented Jul 6, 2017

Anyone know when/if Terraform will support creating VPC network peers? I know it's a Beta feature in GCP, but it's a very simple solution in connecting separate networks either inside or outside GCP.

@danawillow
Copy link
Contributor

Thanks for the FR, @mtohmaz! No timeline right now, but I'm going to link this to #93 so we can easily keep track of all the beta FRs.

@danawillow
Copy link
Contributor

Still no timeline, but this is in GA now: https://cloud.google.com/compute/docs/reference/latest/networks/addPeering

@rosbo
Copy link
Contributor

rosbo commented Jul 28, 2017

Hi Mahmoud, I added a new resource named google_compute_network_peering to support this new feature. The code has been committed and will be released in the next version of the Terraform Google provider.

Here is an example usage:

resource "google_compute_network_peering" "peering1" {
  name = "peering1"
  network = "${google_compute_network.default.self_link}"
  peer_network = "${google_compute_network.other.self_link}"
}

resource "google_compute_network_peering" "peering2" {
  name = "peering2"
  network = "${google_compute_network.other.self_link}"
  peer_network = "${google_compute_network.default.self_link}"
}

resource "google_compute_network" "default" {
  name                    = "foobar"
  auto_create_subnetworks = "false"
}

resource "google_compute_network" "other" {
  name                    = "other"
  auto_create_subnetworks = "false"
}

@ghost
Copy link

ghost commented Mar 31, 2020

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!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants