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

Bug VPC Peering between GCP and Atlas #29

Closed
aliciaalcalde opened this issue Sep 17, 2019 · 2 comments · Fixed by #43
Closed

Bug VPC Peering between GCP and Atlas #29

aliciaalcalde opened this issue Sep 17, 2019 · 2 comments · Fixed by #43

Comments

@aliciaalcalde
Copy link

Good morning,

I try to create peering between MongoDB Atlas Project and my VPC in GCP.

resource "mongodbatlas_network_peering" "main_peering" {
  project_id        = mongodbatlas_project.project.id
  container_id      = mongodbatlas_network_container.container.container_id
  provider_name     = "GCP"
  gcp_project_id    = var.gcp_project_id
  network_name      = var.gcp_main_network_name
  depends_on       = ["mongodbatlas_network_container.container"]
}

resource "google_compute_network_peering" "gcp_main_atlas_peering" {
  name = "atlas-gcp-main"
  network = var.gcp_main_network_link
 peer_network="projects/${mongodbatlas_network_peering.main_peering.project_id}/global/networks/${mongodbatlas_network_peering.main_peering.network_name}"
}

But It never finish. I try it several times but it always finished with the same error:

module.atlas.mongodbatlas_network_peering.main_peering: Still creating... [45m3s elapsed]

Error: rpc error: code = Unavailable desc = transport is closing

In the Atlas website appear this message:
Create a reciprocal connection from GCP to Atlas to complete this connection. Show me how

Thank you,

@PacoDw
Copy link
Contributor

PacoDw commented Sep 18, 2019

Hello @aliciaalcalde thanks for your review, we will check this to resolve it.

@PacoDw PacoDw mentioned this issue Oct 1, 2019
@PacoDw
Copy link
Contributor

PacoDw commented Oct 1, 2019

Hello @aliciaalcalde we have made the fix on the PR #43, could you check the example configuration on there and test on the Network peering branch?

If you have another comment plz let us know, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants