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

Two or more tunnels lead to double route entries leading to a Terraform failed job #38

Closed
maxkarami opened this issue Apr 30, 2020 · 0 comments · Fixed by #43
Closed
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work

Comments

@maxkarami
Copy link

maxkarami commented Apr 30, 2020

Here is the Terraform configuration:

module "vpn-prod-internal" {
  source  = "terraform-google-modules/vpn/google"
  version = "~> 1.2.0"

  project_id         = var.project_id
  network            = module.vpc-1.network_self_link
  region             = var.google_region
  gateway_name       = "vpn-gateway-1"
  tunnel_name_prefix = "vpn-gateway-1-tunnel"
  shared_secret      = "MySecret"
  tunnel_count       = 2
  peer_ips           = ["1.1.1.1", "2.2.2.2"]

  route_priority = 1000
  remote_subnet  = ["10.17.0.0/22", "10.16.80.0/24"]
}

Here is the output linest:
module.vpn-prod-internal.google_compute_route.route[0]: Creation complete after 16s [id=vpn-gateway-1-tunnel1-route1]
Error: Error creating Route: googleapi: Error 409: The resource 'projects/offis-sandbox-0334/global/routes/vpn-gateway-1-tunnel1-route1' already exists, alreadyExists
on .terraform/modules/vpn-prod-internal/main.tf line 24, in resource "google_compute_route" "route":
24: resource "google_compute_route" "route" {
Error: Error creating Route: googleapi: Error 409: The resource 'projects/offis-sandbox-0334/global/routes/vpn-gateway-1-tunnel2-route2' already exists, alreadyExists
on .terraform/modules/vpn-prod-internal/main.tf line 24, in resource "google_compute_route" "route":

@morgante morgante added bug Something isn't working P2 high priority issues triaged Scoped and ready for work labels Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants