1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. VPNTunnel
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

gcp.compute.VPNTunnel

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

    VPN tunnel resource.

    To get more information about VpnTunnel, see:

    Example Usage

    Vpn Tunnel Basic

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var network1 = new Gcp.Compute.Network("network1");
    
        var targetGateway = new Gcp.Compute.VPNGateway("targetGateway", new()
        {
            Network = network1.Id,
        });
    
        var vpnStaticIp = new Gcp.Compute.Address("vpnStaticIp");
    
        var frEsp = new Gcp.Compute.ForwardingRule("frEsp", new()
        {
            IpProtocol = "ESP",
            IpAddress = vpnStaticIp.IPAddress,
            Target = targetGateway.Id,
        });
    
        var frUdp500 = new Gcp.Compute.ForwardingRule("frUdp500", new()
        {
            IpProtocol = "UDP",
            PortRange = "500",
            IpAddress = vpnStaticIp.IPAddress,
            Target = targetGateway.Id,
        });
    
        var frUdp4500 = new Gcp.Compute.ForwardingRule("frUdp4500", new()
        {
            IpProtocol = "UDP",
            PortRange = "4500",
            IpAddress = vpnStaticIp.IPAddress,
            Target = targetGateway.Id,
        });
    
        var tunnel1 = new Gcp.Compute.VPNTunnel("tunnel1", new()
        {
            PeerIp = "15.0.0.120",
            SharedSecret = "a secret message",
            TargetVpnGateway = targetGateway.Id,
            Labels = 
            {
                { "foo", "bar" },
            },
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                frEsp,
                frUdp500,
                frUdp4500,
            },
        });
    
        var route1 = new Gcp.Compute.Route("route1", new()
        {
            Network = network1.Name,
            DestRange = "15.0.0.0/24",
            Priority = 1000,
            NextHopVpnTunnel = tunnel1.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		network1, err := compute.NewNetwork(ctx, "network1", nil)
    		if err != nil {
    			return err
    		}
    		targetGateway, err := compute.NewVPNGateway(ctx, "targetGateway", &compute.VPNGatewayArgs{
    			Network: network1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		vpnStaticIp, err := compute.NewAddress(ctx, "vpnStaticIp", nil)
    		if err != nil {
    			return err
    		}
    		frEsp, err := compute.NewForwardingRule(ctx, "frEsp", &compute.ForwardingRuleArgs{
    			IpProtocol: pulumi.String("ESP"),
    			IpAddress:  vpnStaticIp.Address,
    			Target:     targetGateway.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		frUdp500, err := compute.NewForwardingRule(ctx, "frUdp500", &compute.ForwardingRuleArgs{
    			IpProtocol: pulumi.String("UDP"),
    			PortRange:  pulumi.String("500"),
    			IpAddress:  vpnStaticIp.Address,
    			Target:     targetGateway.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		frUdp4500, err := compute.NewForwardingRule(ctx, "frUdp4500", &compute.ForwardingRuleArgs{
    			IpProtocol: pulumi.String("UDP"),
    			PortRange:  pulumi.String("4500"),
    			IpAddress:  vpnStaticIp.Address,
    			Target:     targetGateway.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		tunnel1, err := compute.NewVPNTunnel(ctx, "tunnel1", &compute.VPNTunnelArgs{
    			PeerIp:           pulumi.String("15.0.0.120"),
    			SharedSecret:     pulumi.String("a secret message"),
    			TargetVpnGateway: targetGateway.ID(),
    			Labels: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			frEsp,
    			frUdp500,
    			frUdp4500,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRoute(ctx, "route1", &compute.RouteArgs{
    			Network:          network1.Name,
    			DestRange:        pulumi.String("15.0.0.0/24"),
    			Priority:         pulumi.Int(1000),
    			NextHopVpnTunnel: tunnel1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.VPNGateway;
    import com.pulumi.gcp.compute.VPNGatewayArgs;
    import com.pulumi.gcp.compute.Address;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.VPNTunnel;
    import com.pulumi.gcp.compute.VPNTunnelArgs;
    import com.pulumi.gcp.compute.Route;
    import com.pulumi.gcp.compute.RouteArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var network1 = new Network("network1");
    
            var targetGateway = new VPNGateway("targetGateway", VPNGatewayArgs.builder()        
                .network(network1.id())
                .build());
    
            var vpnStaticIp = new Address("vpnStaticIp");
    
            var frEsp = new ForwardingRule("frEsp", ForwardingRuleArgs.builder()        
                .ipProtocol("ESP")
                .ipAddress(vpnStaticIp.address())
                .target(targetGateway.id())
                .build());
    
            var frUdp500 = new ForwardingRule("frUdp500", ForwardingRuleArgs.builder()        
                .ipProtocol("UDP")
                .portRange("500")
                .ipAddress(vpnStaticIp.address())
                .target(targetGateway.id())
                .build());
    
            var frUdp4500 = new ForwardingRule("frUdp4500", ForwardingRuleArgs.builder()        
                .ipProtocol("UDP")
                .portRange("4500")
                .ipAddress(vpnStaticIp.address())
                .target(targetGateway.id())
                .build());
    
            var tunnel1 = new VPNTunnel("tunnel1", VPNTunnelArgs.builder()        
                .peerIp("15.0.0.120")
                .sharedSecret("a secret message")
                .targetVpnGateway(targetGateway.id())
                .labels(Map.of("foo", "bar"))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        frEsp,
                        frUdp500,
                        frUdp4500)
                    .build());
    
            var route1 = new Route("route1", RouteArgs.builder()        
                .network(network1.name())
                .destRange("15.0.0.0/24")
                .priority(1000)
                .nextHopVpnTunnel(tunnel1.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    network1 = gcp.compute.Network("network1")
    target_gateway = gcp.compute.VPNGateway("targetGateway", network=network1.id)
    vpn_static_ip = gcp.compute.Address("vpnStaticIp")
    fr_esp = gcp.compute.ForwardingRule("frEsp",
        ip_protocol="ESP",
        ip_address=vpn_static_ip.address,
        target=target_gateway.id)
    fr_udp500 = gcp.compute.ForwardingRule("frUdp500",
        ip_protocol="UDP",
        port_range="500",
        ip_address=vpn_static_ip.address,
        target=target_gateway.id)
    fr_udp4500 = gcp.compute.ForwardingRule("frUdp4500",
        ip_protocol="UDP",
        port_range="4500",
        ip_address=vpn_static_ip.address,
        target=target_gateway.id)
    tunnel1 = gcp.compute.VPNTunnel("tunnel1",
        peer_ip="15.0.0.120",
        shared_secret="a secret message",
        target_vpn_gateway=target_gateway.id,
        labels={
            "foo": "bar",
        },
        opts=pulumi.ResourceOptions(depends_on=[
                fr_esp,
                fr_udp500,
                fr_udp4500,
            ]))
    route1 = gcp.compute.Route("route1",
        network=network1.name,
        dest_range="15.0.0.0/24",
        priority=1000,
        next_hop_vpn_tunnel=tunnel1.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const network1 = new gcp.compute.Network("network1", {});
    const targetGateway = new gcp.compute.VPNGateway("targetGateway", {network: network1.id});
    const vpnStaticIp = new gcp.compute.Address("vpnStaticIp", {});
    const frEsp = new gcp.compute.ForwardingRule("frEsp", {
        ipProtocol: "ESP",
        ipAddress: vpnStaticIp.address,
        target: targetGateway.id,
    });
    const frUdp500 = new gcp.compute.ForwardingRule("frUdp500", {
        ipProtocol: "UDP",
        portRange: "500",
        ipAddress: vpnStaticIp.address,
        target: targetGateway.id,
    });
    const frUdp4500 = new gcp.compute.ForwardingRule("frUdp4500", {
        ipProtocol: "UDP",
        portRange: "4500",
        ipAddress: vpnStaticIp.address,
        target: targetGateway.id,
    });
    const tunnel1 = new gcp.compute.VPNTunnel("tunnel1", {
        peerIp: "15.0.0.120",
        sharedSecret: "a secret message",
        targetVpnGateway: targetGateway.id,
        labels: {
            foo: "bar",
        },
    }, {
        dependsOn: [
            frEsp,
            frUdp500,
            frUdp4500,
        ],
    });
    const route1 = new gcp.compute.Route("route1", {
        network: network1.name,
        destRange: "15.0.0.0/24",
        priority: 1000,
        nextHopVpnTunnel: tunnel1.id,
    });
    
    resources:
      tunnel1:
        type: gcp:compute:VPNTunnel
        properties:
          peerIp: 15.0.0.120
          sharedSecret: a secret message
          targetVpnGateway: ${targetGateway.id}
          labels:
            foo: bar
        options:
          dependson:
            - ${frEsp}
            - ${frUdp500}
            - ${frUdp4500}
      targetGateway:
        type: gcp:compute:VPNGateway
        properties:
          network: ${network1.id}
      network1:
        type: gcp:compute:Network
      vpnStaticIp:
        type: gcp:compute:Address
      frEsp:
        type: gcp:compute:ForwardingRule
        properties:
          ipProtocol: ESP
          ipAddress: ${vpnStaticIp.address}
          target: ${targetGateway.id}
      frUdp500:
        type: gcp:compute:ForwardingRule
        properties:
          ipProtocol: UDP
          portRange: '500'
          ipAddress: ${vpnStaticIp.address}
          target: ${targetGateway.id}
      frUdp4500:
        type: gcp:compute:ForwardingRule
        properties:
          ipProtocol: UDP
          portRange: '4500'
          ipAddress: ${vpnStaticIp.address}
          target: ${targetGateway.id}
      route1:
        type: gcp:compute:Route
        properties:
          network: ${network1.name}
          destRange: 15.0.0.0/24
          priority: 1000
          nextHopVpnTunnel: ${tunnel1.id}
    

    Create VPNTunnel Resource

    new VPNTunnel(name: string, args: VPNTunnelArgs, opts?: CustomResourceOptions);
    @overload
    def VPNTunnel(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  ike_version: Optional[int] = None,
                  labels: Optional[Mapping[str, str]] = None,
                  local_traffic_selectors: Optional[Sequence[str]] = None,
                  name: Optional[str] = None,
                  peer_external_gateway: Optional[str] = None,
                  peer_external_gateway_interface: Optional[int] = None,
                  peer_gcp_gateway: Optional[str] = None,
                  peer_ip: Optional[str] = None,
                  project: Optional[str] = None,
                  region: Optional[str] = None,
                  remote_traffic_selectors: Optional[Sequence[str]] = None,
                  router: Optional[str] = None,
                  shared_secret: Optional[str] = None,
                  target_vpn_gateway: Optional[str] = None,
                  vpn_gateway: Optional[str] = None,
                  vpn_gateway_interface: Optional[int] = None)
    @overload
    def VPNTunnel(resource_name: str,
                  args: VPNTunnelArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewVPNTunnel(ctx *Context, name string, args VPNTunnelArgs, opts ...ResourceOption) (*VPNTunnel, error)
    public VPNTunnel(string name, VPNTunnelArgs args, CustomResourceOptions? opts = null)
    public VPNTunnel(String name, VPNTunnelArgs args)
    public VPNTunnel(String name, VPNTunnelArgs args, CustomResourceOptions options)
    
    type: gcp:compute:VPNTunnel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VPNTunnelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VPNTunnelArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VPNTunnelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VPNTunnelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VPNTunnelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VPNTunnel Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VPNTunnel resource accepts the following input properties:

    SharedSecret string

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    Description string

    An optional description of this resource.

    IkeVersion int

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    Labels Dictionary<string, string>

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    LocalTrafficSelectors List<string>

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Name string

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    PeerExternalGateway string

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    PeerExternalGatewayInterface int

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    PeerGcpGateway string

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    PeerIp string

    IP address of the peer VPN gateway. Only IPv4 is supported.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Region string

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    RemoteTrafficSelectors List<string>

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Router string

    URL of router resource to be used for dynamic routing.

    TargetVpnGateway string

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    VpnGateway string

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    VpnGatewayInterface int

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    SharedSecret string

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    Description string

    An optional description of this resource.

    IkeVersion int

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    Labels map[string]string

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    LocalTrafficSelectors []string

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Name string

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    PeerExternalGateway string

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    PeerExternalGatewayInterface int

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    PeerGcpGateway string

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    PeerIp string

    IP address of the peer VPN gateway. Only IPv4 is supported.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Region string

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    RemoteTrafficSelectors []string

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Router string

    URL of router resource to be used for dynamic routing.

    TargetVpnGateway string

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    VpnGateway string

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    VpnGatewayInterface int

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    sharedSecret String

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    description String

    An optional description of this resource.

    ikeVersion Integer

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labels Map<String,String>

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    localTrafficSelectors List<String>

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name String

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peerExternalGateway String

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peerExternalGatewayInterface Integer

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peerGcpGateway String

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peerIp String

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    region String

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remoteTrafficSelectors List<String>

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router String

    URL of router resource to be used for dynamic routing.

    targetVpnGateway String

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    vpnGateway String

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpnGatewayInterface Integer

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    sharedSecret string

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    description string

    An optional description of this resource.

    ikeVersion number

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labels {[key: string]: string}

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    localTrafficSelectors string[]

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name string

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peerExternalGateway string

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peerExternalGatewayInterface number

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peerGcpGateway string

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peerIp string

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    region string

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remoteTrafficSelectors string[]

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router string

    URL of router resource to be used for dynamic routing.

    targetVpnGateway string

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    vpnGateway string

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpnGatewayInterface number

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    shared_secret str

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    description str

    An optional description of this resource.

    ike_version int

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labels Mapping[str, str]

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    local_traffic_selectors Sequence[str]

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name str

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peer_external_gateway str

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peer_external_gateway_interface int

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peer_gcp_gateway str

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peer_ip str

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    region str

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remote_traffic_selectors Sequence[str]

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router str

    URL of router resource to be used for dynamic routing.

    target_vpn_gateway str

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    vpn_gateway str

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpn_gateway_interface int

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    sharedSecret String

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    description String

    An optional description of this resource.

    ikeVersion Number

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labels Map<String>

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    localTrafficSelectors List<String>

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name String

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peerExternalGateway String

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peerExternalGatewayInterface Number

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peerGcpGateway String

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peerIp String

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    region String

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remoteTrafficSelectors List<String>

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router String

    URL of router resource to be used for dynamic routing.

    targetVpnGateway String

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    vpnGateway String

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpnGatewayInterface Number

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VPNTunnel resource produces the following output properties:

    CreationTimestamp string

    Creation timestamp in RFC3339 text format.

    DetailedStatus string

    Detailed status message for the VPN tunnel.

    EffectiveLabels Dictionary<string, string>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    Id string

    The provider-assigned unique ID for this managed resource.

    LabelFingerprint string

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    PulumiLabels Dictionary<string, string>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    SelfLink string

    The URI of the created resource.

    SharedSecretHash string

    Hash of the shared secret.

    TunnelId string

    The unique identifier for the resource. This identifier is defined by the server.

    CreationTimestamp string

    Creation timestamp in RFC3339 text format.

    DetailedStatus string

    Detailed status message for the VPN tunnel.

    EffectiveLabels map[string]string

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    Id string

    The provider-assigned unique ID for this managed resource.

    LabelFingerprint string

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    PulumiLabels map[string]string

    The combination of labels configured directly on the resource and default labels configured on the provider.

    SelfLink string

    The URI of the created resource.

    SharedSecretHash string

    Hash of the shared secret.

    TunnelId string

    The unique identifier for the resource. This identifier is defined by the server.

    creationTimestamp String

    Creation timestamp in RFC3339 text format.

    detailedStatus String

    Detailed status message for the VPN tunnel.

    effectiveLabels Map<String,String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    id String

    The provider-assigned unique ID for this managed resource.

    labelFingerprint String

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    pulumiLabels Map<String,String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    selfLink String

    The URI of the created resource.

    sharedSecretHash String

    Hash of the shared secret.

    tunnelId String

    The unique identifier for the resource. This identifier is defined by the server.

    creationTimestamp string

    Creation timestamp in RFC3339 text format.

    detailedStatus string

    Detailed status message for the VPN tunnel.

    effectiveLabels {[key: string]: string}

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    id string

    The provider-assigned unique ID for this managed resource.

    labelFingerprint string

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    pulumiLabels {[key: string]: string}

    The combination of labels configured directly on the resource and default labels configured on the provider.

    selfLink string

    The URI of the created resource.

    sharedSecretHash string

    Hash of the shared secret.

    tunnelId string

    The unique identifier for the resource. This identifier is defined by the server.

    creation_timestamp str

    Creation timestamp in RFC3339 text format.

    detailed_status str

    Detailed status message for the VPN tunnel.

    effective_labels Mapping[str, str]

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    id str

    The provider-assigned unique ID for this managed resource.

    label_fingerprint str

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    pulumi_labels Mapping[str, str]

    The combination of labels configured directly on the resource and default labels configured on the provider.

    self_link str

    The URI of the created resource.

    shared_secret_hash str

    Hash of the shared secret.

    tunnel_id str

    The unique identifier for the resource. This identifier is defined by the server.

    creationTimestamp String

    Creation timestamp in RFC3339 text format.

    detailedStatus String

    Detailed status message for the VPN tunnel.

    effectiveLabels Map<String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    id String

    The provider-assigned unique ID for this managed resource.

    labelFingerprint String

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    pulumiLabels Map<String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    selfLink String

    The URI of the created resource.

    sharedSecretHash String

    Hash of the shared secret.

    tunnelId String

    The unique identifier for the resource. This identifier is defined by the server.

    Look up Existing VPNTunnel Resource

    Get an existing VPNTunnel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VPNTunnelState, opts?: CustomResourceOptions): VPNTunnel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_timestamp: Optional[str] = None,
            description: Optional[str] = None,
            detailed_status: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            ike_version: Optional[int] = None,
            label_fingerprint: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            local_traffic_selectors: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            peer_external_gateway: Optional[str] = None,
            peer_external_gateway_interface: Optional[int] = None,
            peer_gcp_gateway: Optional[str] = None,
            peer_ip: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            region: Optional[str] = None,
            remote_traffic_selectors: Optional[Sequence[str]] = None,
            router: Optional[str] = None,
            self_link: Optional[str] = None,
            shared_secret: Optional[str] = None,
            shared_secret_hash: Optional[str] = None,
            target_vpn_gateway: Optional[str] = None,
            tunnel_id: Optional[str] = None,
            vpn_gateway: Optional[str] = None,
            vpn_gateway_interface: Optional[int] = None) -> VPNTunnel
    func GetVPNTunnel(ctx *Context, name string, id IDInput, state *VPNTunnelState, opts ...ResourceOption) (*VPNTunnel, error)
    public static VPNTunnel Get(string name, Input<string> id, VPNTunnelState? state, CustomResourceOptions? opts = null)
    public static VPNTunnel get(String name, Output<String> id, VPNTunnelState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreationTimestamp string

    Creation timestamp in RFC3339 text format.

    Description string

    An optional description of this resource.

    DetailedStatus string

    Detailed status message for the VPN tunnel.

    EffectiveLabels Dictionary<string, string>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    IkeVersion int

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    LabelFingerprint string

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    Labels Dictionary<string, string>

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    LocalTrafficSelectors List<string>

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Name string

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    PeerExternalGateway string

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    PeerExternalGatewayInterface int

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    PeerGcpGateway string

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    PeerIp string

    IP address of the peer VPN gateway. Only IPv4 is supported.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    PulumiLabels Dictionary<string, string>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    Region string

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    RemoteTrafficSelectors List<string>

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Router string

    URL of router resource to be used for dynamic routing.

    SelfLink string

    The URI of the created resource.

    SharedSecret string

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    SharedSecretHash string

    Hash of the shared secret.

    TargetVpnGateway string

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    TunnelId string

    The unique identifier for the resource. This identifier is defined by the server.

    VpnGateway string

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    VpnGatewayInterface int

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    CreationTimestamp string

    Creation timestamp in RFC3339 text format.

    Description string

    An optional description of this resource.

    DetailedStatus string

    Detailed status message for the VPN tunnel.

    EffectiveLabels map[string]string

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    IkeVersion int

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    LabelFingerprint string

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    Labels map[string]string

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    LocalTrafficSelectors []string

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Name string

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    PeerExternalGateway string

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    PeerExternalGatewayInterface int

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    PeerGcpGateway string

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    PeerIp string

    IP address of the peer VPN gateway. Only IPv4 is supported.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    PulumiLabels map[string]string

    The combination of labels configured directly on the resource and default labels configured on the provider.

    Region string

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    RemoteTrafficSelectors []string

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    Router string

    URL of router resource to be used for dynamic routing.

    SelfLink string

    The URI of the created resource.

    SharedSecret string

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    SharedSecretHash string

    Hash of the shared secret.

    TargetVpnGateway string

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    TunnelId string

    The unique identifier for the resource. This identifier is defined by the server.

    VpnGateway string

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    VpnGatewayInterface int

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    creationTimestamp String

    Creation timestamp in RFC3339 text format.

    description String

    An optional description of this resource.

    detailedStatus String

    Detailed status message for the VPN tunnel.

    effectiveLabels Map<String,String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    ikeVersion Integer

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labelFingerprint String

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    labels Map<String,String>

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    localTrafficSelectors List<String>

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name String

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peerExternalGateway String

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peerExternalGatewayInterface Integer

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peerGcpGateway String

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peerIp String

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    pulumiLabels Map<String,String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    region String

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remoteTrafficSelectors List<String>

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router String

    URL of router resource to be used for dynamic routing.

    selfLink String

    The URI of the created resource.

    sharedSecret String

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    sharedSecretHash String

    Hash of the shared secret.

    targetVpnGateway String

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    tunnelId String

    The unique identifier for the resource. This identifier is defined by the server.

    vpnGateway String

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpnGatewayInterface Integer

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    creationTimestamp string

    Creation timestamp in RFC3339 text format.

    description string

    An optional description of this resource.

    detailedStatus string

    Detailed status message for the VPN tunnel.

    effectiveLabels {[key: string]: string}

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    ikeVersion number

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labelFingerprint string

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    labels {[key: string]: string}

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    localTrafficSelectors string[]

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name string

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peerExternalGateway string

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peerExternalGatewayInterface number

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peerGcpGateway string

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peerIp string

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    pulumiLabels {[key: string]: string}

    The combination of labels configured directly on the resource and default labels configured on the provider.

    region string

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remoteTrafficSelectors string[]

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router string

    URL of router resource to be used for dynamic routing.

    selfLink string

    The URI of the created resource.

    sharedSecret string

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    sharedSecretHash string

    Hash of the shared secret.

    targetVpnGateway string

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    tunnelId string

    The unique identifier for the resource. This identifier is defined by the server.

    vpnGateway string

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpnGatewayInterface number

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    creation_timestamp str

    Creation timestamp in RFC3339 text format.

    description str

    An optional description of this resource.

    detailed_status str

    Detailed status message for the VPN tunnel.

    effective_labels Mapping[str, str]

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    ike_version int

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    label_fingerprint str

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    labels Mapping[str, str]

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    local_traffic_selectors Sequence[str]

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name str

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peer_external_gateway str

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peer_external_gateway_interface int

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peer_gcp_gateway str

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peer_ip str

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    pulumi_labels Mapping[str, str]

    The combination of labels configured directly on the resource and default labels configured on the provider.

    region str

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remote_traffic_selectors Sequence[str]

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router str

    URL of router resource to be used for dynamic routing.

    self_link str

    The URI of the created resource.

    shared_secret str

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    shared_secret_hash str

    Hash of the shared secret.

    target_vpn_gateway str

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    tunnel_id str

    The unique identifier for the resource. This identifier is defined by the server.

    vpn_gateway str

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpn_gateway_interface int

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    creationTimestamp String

    Creation timestamp in RFC3339 text format.

    description String

    An optional description of this resource.

    detailedStatus String

    Detailed status message for the VPN tunnel.

    effectiveLabels Map<String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

    ikeVersion Number

    IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

    labelFingerprint String

    The fingerprint used for optimistic locking of this resource. Used internally during updates.

    labels Map<String>

    Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    localTrafficSelectors List<String>

    Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    name String

    Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    peerExternalGateway String

    URL of the peer side external VPN gateway to which this VPN tunnel is connected.

    peerExternalGatewayInterface Number

    The interface ID of the external VPN gateway to which this VPN tunnel is connected.

    peerGcpGateway String

    URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

    peerIp String

    IP address of the peer VPN gateway. Only IPv4 is supported.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    pulumiLabels Map<String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    region String

    The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

    remoteTrafficSelectors List<String>

    Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

    router String

    URL of router resource to be used for dynamic routing.

    selfLink String

    The URI of the created resource.

    sharedSecret String

    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


    sharedSecretHash String

    Hash of the shared secret.

    targetVpnGateway String

    URL of the Target VPN gateway with which this VPN tunnel is associated.

    tunnelId String

    The unique identifier for the resource. This identifier is defined by the server.

    vpnGateway String

    URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

    vpnGatewayInterface Number

    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    Import

    VpnTunnel can be imported using any of these accepted formats* projects/{{project}}/regions/{{region}}/vpnTunnels/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import VpnTunnel using one of the formats above. For exampletf import {

    id = “projects/{{project}}/regions/{{region}}/vpnTunnels/{{name}}”

    to = google_compute_vpn_tunnel.default }

     $ pulumi import gcp:compute/vPNTunnel:VPNTunnel When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), VpnTunnel can be imported using one of the formats above. For example
    
     $ pulumi import gcp:compute/vPNTunnel:VPNTunnel default projects/{{project}}/regions/{{region}}/vpnTunnels/{{name}}
    
     $ pulumi import gcp:compute/vPNTunnel:VPNTunnel default {{project}}/{{region}}/{{name}}
    
     $ pulumi import gcp:compute/vPNTunnel:VPNTunnel default {{region}}/{{name}}
    
     $ pulumi import gcp:compute/vPNTunnel:VPNTunnel default {{name}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi