Skip to content

Commit

Permalink
fix: remove Classic VPN tunnels dynamic example (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Jun 11, 2022
1 parent c2e563b commit 2ab8e68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
30 changes: 0 additions & 30 deletions examples/single_tunnels/mgmt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,6 @@
* limitations under the License.
*/

##To Prod VPC
resource "google_compute_router" "cr-uscentral1-to-prod-vpc" {
name = "cr-uscentral1-to-prod-vpc-tunnels"
region = "us-central1"
network = var.mgt_network
project = var.mgt_project_id

bgp {
asn = "64516"
}
}

module "vpn-gw-us-ce1-mgt-prd-internal" {
source = "../../"
project_id = var.mgt_project_id
network = var.mgt_network
region = "us-central1"
gateway_name = "vpn-gw-us-ce1-mgt-prd-internal"
tunnel_name_prefix = "vpn-tn-us-ce1-mgt-prd-internal"
shared_secret = "secrets"
tunnel_count = 1
peer_ips = [module.vpn-gw-us-ce1-prd-mgt-internal.gateway_ip]

cr_name = google_compute_router.cr-uscentral1-to-prod-vpc.name
cr_enabled = true
bgp_cr_session_range = ["169.254.0.2/30"]
bgp_remote_session_range = ["169.254.0.1"]
peer_asn = ["64515"]
}

module "vpn-gw-us-we1-mgt-prd-internal" {
source = "../../"
project_id = var.mgt_project_id
Expand Down
30 changes: 0 additions & 30 deletions examples/single_tunnels/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,6 @@
* limitations under the License.
*/

##To MGMT VPC
resource "google_compute_router" "cr-central1-to-mgt-vpc" {
name = "cr-uscentral1-to-mgt-vpc-tunnels"
region = "us-central1"
network = var.prod_network
project = var.prod_project_id

bgp {
asn = "64515"
}
}

module "vpn-gw-us-ce1-prd-mgt-internal" {
source = "../../"
project_id = var.prod_project_id
network = var.prod_network
region = "us-central1"
gateway_name = "vpn-gw-us-ce1-prd-mgt-internal"
tunnel_name_prefix = "vpn-tn-us-ce1-prd-mgt-internal"
shared_secret = "secrets"
tunnel_count = 1
peer_ips = [module.vpn-gw-us-ce1-mgt-prd-internal.gateway_ip]

cr_name = google_compute_router.cr-central1-to-mgt-vpc.name
cr_enabled = true
bgp_cr_session_range = ["169.254.0.1/30"]
bgp_remote_session_range = ["169.254.0.2"]
peer_asn = ["64516"]
}

module "vpn-gw-us-we1-prd-mgt-internal" {
source = "../../"
project_id = var.prod_project_id
Expand Down

0 comments on commit 2ab8e68

Please sign in to comment.