You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_compute_vpn_tunnel" {
source="./modules/google-beta/r/google_compute_vpn_tunnel"# description - (optional) is a type of stringdescription=null# ike_version - (optional) is a type of numberike_version=null# labels - (optional) is a type of map of stringlabels={}
# local_traffic_selector - (optional) is a type of set of stringlocal_traffic_selector=[]
# name - (required) is a type of stringname=null# peer_external_gateway - (optional) is a type of stringpeer_external_gateway=null# peer_external_gateway_interface - (optional) is a type of numberpeer_external_gateway_interface=null# peer_gcp_gateway - (optional) is a type of stringpeer_gcp_gateway=null# peer_ip - (optional) is a type of stringpeer_ip=null# project - (optional) is a type of stringproject=null# region - (optional) is a type of stringregion=null# remote_traffic_selector - (optional) is a type of set of stringremote_traffic_selector=[]
# router - (optional) is a type of stringrouter=null# shared_secret - (required) is a type of stringshared_secret=null# target_vpn_gateway - (optional) is a type of stringtarget_vpn_gateway=null# vpn_gateway - (optional) is a type of stringvpn_gateway=null# vpn_gateway_interface - (optional) is a type of numbervpn_gateway_interface=nulltimeouts=[{
create =null
delete =null
update =null
}]
}
variable"description" {
description="(optional) - An optional description of this resource."type=stringdefault=null
}
variable"ike_version" {
description="(optional) - IKE protocol version to use when establishing the VPN tunnel with\npeer VPN gateway.\nAcceptable IKE versions are 1 or 2. Default version is 2."type=numberdefault=null
}
variable"labels" {
description="(optional) - Labels to apply to this VpnTunnel."type=map(string)
default=null
}
variable"local_traffic_selector" {
description="(optional) - Local traffic selector to use when establishing the VPN tunnel with\npeer VPN gateway. The value should be a CIDR formatted string,\nfor example '192.168.0.0/16'. The ranges should be disjoint.\nOnly IPv4 is supported."type=set(string)
default=null
}
variable"name" {
description="(required) - Name of the resource. The name must be 1-63 characters long, and\ncomply with RFC1035. Specifically, the name must be 1-63\ncharacters long and match the regular expression\n'[a-z]([-a-z0-9]*[a-z0-9])?' which means the first character\nmust be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit,\nexcept the last character, which cannot be a dash."type=string
}
variable"peer_external_gateway" {
description="(optional) - URL of the peer side external VPN gateway to which this VPN tunnel is connected."type=stringdefault=null
}
variable"peer_external_gateway_interface" {
description="(optional) - The interface ID of the external VPN gateway to which this VPN tunnel is connected."type=numberdefault=null
}
variable"peer_gcp_gateway" {
description="(optional) - URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.\nIf provided, the VPN tunnel will automatically use the same vpn_gateway_interface\nID in the peer GCP VPN gateway.\nThis field must reference a 'google_compute_ha_vpn_gateway' resource."type=stringdefault=null
}
variable"peer_ip" {
description="(optional) - IP address of the peer VPN gateway. Only IPv4 is supported."type=stringdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"region" {
description="(optional) - The region where the tunnel is located. If unset, is set to the region of 'target_vpn_gateway'."type=stringdefault=null
}
variable"remote_traffic_selector" {
description="(optional) - Remote traffic selector to use when establishing the VPN tunnel with\npeer VPN gateway. The value should be a CIDR formatted string,\nfor example '192.168.0.0/16'. The ranges should be disjoint.\nOnly IPv4 is supported."type=set(string)
default=null
}
variable"router" {
description="(optional) - URL of router resource to be used for dynamic routing."type=stringdefault=null
}
variable"shared_secret" {
description="(required) - Shared secret used to set the secure session between the Cloud VPN\ngateway and the peer VPN gateway."type=string
}
variable"target_vpn_gateway" {
description="(optional) - URL of the Target VPN gateway with which this VPN tunnel is\nassociated."type=stringdefault=null
}
variable"vpn_gateway" {
description="(optional) - URL of the VPN gateway with which this VPN tunnel is associated.\nThis must be used if a High Availability VPN gateway resource is created.\nThis field must reference a 'google_compute_ha_vpn_gateway' resource."type=stringdefault=null
}
variable"vpn_gateway_interface" {
description="(optional) - The interface ID of the VPN gateway with which this VPN tunnel is associated."type=numberdefault=null
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_compute_vpn_tunnel""this" {
# description - (optional) is a type of stringdescription=var.description# ike_version - (optional) is a type of numberike_version=var.ike_version# labels - (optional) is a type of map of stringlabels=var.labels# local_traffic_selector - (optional) is a type of set of stringlocal_traffic_selector=var.local_traffic_selector# name - (required) is a type of stringname=var.name# peer_external_gateway - (optional) is a type of stringpeer_external_gateway=var.peer_external_gateway# peer_external_gateway_interface - (optional) is a type of numberpeer_external_gateway_interface=var.peer_external_gateway_interface# peer_gcp_gateway - (optional) is a type of stringpeer_gcp_gateway=var.peer_gcp_gateway# peer_ip - (optional) is a type of stringpeer_ip=var.peer_ip# project - (optional) is a type of stringproject=var.project# region - (optional) is a type of stringregion=var.region# remote_traffic_selector - (optional) is a type of set of stringremote_traffic_selector=var.remote_traffic_selector# router - (optional) is a type of stringrouter=var.router# shared_secret - (required) is a type of stringshared_secret=var.shared_secret# target_vpn_gateway - (optional) is a type of stringtarget_vpn_gateway=var.target_vpn_gateway# vpn_gateway - (optional) is a type of stringvpn_gateway=var.vpn_gateway# vpn_gateway_interface - (optional) is a type of numbervpn_gateway_interface=var.vpn_gateway_interfacedynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}
output"creation_timestamp" {
description="returns a string"value=google_compute_vpn_tunnel.this.creation_timestamp
}
output"detailed_status" {
description="returns a string"value=google_compute_vpn_tunnel.this.detailed_status
}
output"id" {
description="returns a string"value=google_compute_vpn_tunnel.this.id
}
output"label_fingerprint" {
description="returns a string"value=google_compute_vpn_tunnel.this.label_fingerprint
}
output"local_traffic_selector" {
description="returns a set of string"value=google_compute_vpn_tunnel.this.local_traffic_selector
}
output"peer_ip" {
description="returns a string"value=google_compute_vpn_tunnel.this.peer_ip
}
output"project" {
description="returns a string"value=google_compute_vpn_tunnel.this.project
}
output"region" {
description="returns a string"value=google_compute_vpn_tunnel.this.region
}
output"remote_traffic_selector" {
description="returns a set of string"value=google_compute_vpn_tunnel.this.remote_traffic_selector
}
output"self_link" {
description="returns a string"value=google_compute_vpn_tunnel.this.self_link
}
output"shared_secret_hash" {
description="returns a string"value=google_compute_vpn_tunnel.this.shared_secret_hash
}
output"tunnel_id" {
description="returns a string"value=google_compute_vpn_tunnel.this.tunnel_id
}
output"this" {
value=google_compute_vpn_tunnel.this
}