0
0
llucycodes42
The code creates a google_compute_vpn_tunnel resource. This resource has the following properties:
name : The name of the tunnel.
description : A description of the tunnel.
peer_ip : The IP address of the peer computer.
shared_secret : A shared secret for the tunnel.
target_vpn_gateway : The target VPN gateway. This tunnel will use the target VPN gateway as its gateway.
Shortcut: tf_google_compute_vpn_tunnel
resource "google_compute_vpn_tunnel" "${MyResource}" {
name = "example-name"
description = "example-description"
peer_ip = "15.0.0.120"
shared_secret = "a shared_secret"
target_vpn_gateway = "\${google_compute_vpn_gateway.target_gateway.self_link}"
}