@@ -606,6 +606,17 @@ func testAccComputeRouterPeerWithMd5AuthKey(routerName string) string {
606
606
router = google_compute_router.foobar.name
607
607
vpn_gateway_interface = 0
608
608
}
609
+
610
+ resource "google_compute_vpn_tunnel" "foobar1" {
611
+ name = "%s1"
612
+ region = google_compute_subnetwork.foobar.region
613
+ vpn_gateway = google_compute_ha_vpn_gateway.foobar.id
614
+ peer_external_gateway = google_compute_external_vpn_gateway.external_gateway.id
615
+ peer_external_gateway_interface = 0
616
+ shared_secret = "unguessable"
617
+ router = google_compute_router.foobar.name
618
+ vpn_gateway_interface = 1
619
+ }
609
620
610
621
resource "google_compute_router_interface" "foobar" {
611
622
name = "%s"
@@ -619,7 +630,7 @@ func testAccComputeRouterPeerWithMd5AuthKey(routerName string) string {
619
630
name = "%s1"
620
631
router = google_compute_router.foobar.name
621
632
region = google_compute_router.foobar.region
622
- vpn_tunnel = google_compute_vpn_tunnel.foobar .name
633
+ vpn_tunnel = google_compute_vpn_tunnel.foobar1 .name
623
634
ip_range = "169.254.4.1/30"
624
635
depends_on = [
625
636
google_compute_router_interface.foobar
@@ -657,7 +668,7 @@ func testAccComputeRouterPeerWithMd5AuthKey(routerName string) string {
657
668
]
658
669
}
659
670
` , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName ,
660
- routerName )
671
+ routerName , routerName )
661
672
}
662
673
663
674
func testAccComputeRouterPeerWithMd5AuthKeyUpdate (routerName string ) string {
@@ -714,6 +725,17 @@ func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
714
725
router = google_compute_router.foobar.name
715
726
vpn_gateway_interface = 0
716
727
}
728
+
729
+ resource "google_compute_vpn_tunnel" "foobar1" {
730
+ name = "%s1"
731
+ region = google_compute_subnetwork.foobar.region
732
+ vpn_gateway = google_compute_ha_vpn_gateway.foobar.id
733
+ peer_external_gateway = google_compute_external_vpn_gateway.external_gateway.id
734
+ peer_external_gateway_interface = 0
735
+ shared_secret = "unguessable"
736
+ router = google_compute_router.foobar.name
737
+ vpn_gateway_interface = 1
738
+ }
717
739
718
740
resource "google_compute_router_interface" "foobar" {
719
741
name = "%s"
@@ -727,7 +749,7 @@ func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
727
749
name = "%s1"
728
750
router = google_compute_router.foobar.name
729
751
region = google_compute_router.foobar.region
730
- vpn_tunnel = google_compute_vpn_tunnel.foobar .name
752
+ vpn_tunnel = google_compute_vpn_tunnel.foobar1 .name
731
753
ip_range = "169.254.4.1/30"
732
754
depends_on = [
733
755
google_compute_router_interface.foobar
@@ -765,7 +787,7 @@ func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
765
787
]
766
788
}
767
789
` , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName , routerName ,
768
- routerName )
790
+ routerName , routerName )
769
791
}
770
792
771
793
func testAccComputeRouterPeerKeepRouter (routerName string ) string {
0 commit comments