gcp logo
Google Cloud Classic v6.52.0, Mar 22 23

gcp.vpcaccess.Connector

Serverless VPC Access connector resource.

To get more information about Connector, see:

Example Usage

VPC Access Connector

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var connector = new Gcp.VpcAccess.Connector("connector", new()
    {
        IpCidrRange = "10.8.0.0/28",
        Network = "default",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/vpcaccess"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpcaccess.NewConnector(ctx, "connector", &vpcaccess.ConnectorArgs{
			IpCidrRange: pulumi.String("10.8.0.0/28"),
			Network:     pulumi.String("default"),
		})
		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.vpcaccess.Connector;
import com.pulumi.gcp.vpcaccess.ConnectorArgs;
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 connector = new Connector("connector", ConnectorArgs.builder()        
            .ipCidrRange("10.8.0.0/28")
            .network("default")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

connector = gcp.vpcaccess.Connector("connector",
    ip_cidr_range="10.8.0.0/28",
    network="default")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const connector = new gcp.vpcaccess.Connector("connector", {
    ipCidrRange: "10.8.0.0/28",
    network: "default",
});
resources:
  connector:
    type: gcp:vpcaccess:Connector
    properties:
      ipCidrRange: 10.8.0.0/28
      network: default

VPC Access Connector Shared VPC

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var customTestNetwork = new Gcp.Compute.Network("customTestNetwork", new()
    {
        AutoCreateSubnetworks = false,
    });

    var customTestSubnetwork = new Gcp.Compute.Subnetwork("customTestSubnetwork", new()
    {
        IpCidrRange = "10.2.0.0/28",
        Region = "us-central1",
        Network = customTestNetwork.Id,
    });

    var connector = new Gcp.VpcAccess.Connector("connector", new()
    {
        Subnet = new Gcp.VpcAccess.Inputs.ConnectorSubnetArgs
        {
            Name = customTestSubnetwork.Name,
        },
        MachineType = "e2-standard-4",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/vpcaccess"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		customTestNetwork, err := compute.NewNetwork(ctx, "customTestNetwork", &compute.NetworkArgs{
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		customTestSubnetwork, err := compute.NewSubnetwork(ctx, "customTestSubnetwork", &compute.SubnetworkArgs{
			IpCidrRange: pulumi.String("10.2.0.0/28"),
			Region:      pulumi.String("us-central1"),
			Network:     customTestNetwork.ID(),
		})
		if err != nil {
			return err
		}
		_, err = vpcaccess.NewConnector(ctx, "connector", &vpcaccess.ConnectorArgs{
			Subnet: &vpcaccess.ConnectorSubnetArgs{
				Name: customTestSubnetwork.Name,
			},
			MachineType: pulumi.String("e2-standard-4"),
		})
		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.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.vpcaccess.Connector;
import com.pulumi.gcp.vpcaccess.ConnectorArgs;
import com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs;
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 customTestNetwork = new Network("customTestNetwork", NetworkArgs.builder()        
            .autoCreateSubnetworks(false)
            .build());

        var customTestSubnetwork = new Subnetwork("customTestSubnetwork", SubnetworkArgs.builder()        
            .ipCidrRange("10.2.0.0/28")
            .region("us-central1")
            .network(customTestNetwork.id())
            .build());

        var connector = new Connector("connector", ConnectorArgs.builder()        
            .subnet(ConnectorSubnetArgs.builder()
                .name(customTestSubnetwork.name())
                .build())
            .machineType("e2-standard-4")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

custom_test_network = gcp.compute.Network("customTestNetwork", auto_create_subnetworks=False)
custom_test_subnetwork = gcp.compute.Subnetwork("customTestSubnetwork",
    ip_cidr_range="10.2.0.0/28",
    region="us-central1",
    network=custom_test_network.id)
connector = gcp.vpcaccess.Connector("connector",
    subnet=gcp.vpcaccess.ConnectorSubnetArgs(
        name=custom_test_subnetwork.name,
    ),
    machine_type="e2-standard-4")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const customTestNetwork = new gcp.compute.Network("customTestNetwork", {autoCreateSubnetworks: false});
const customTestSubnetwork = new gcp.compute.Subnetwork("customTestSubnetwork", {
    ipCidrRange: "10.2.0.0/28",
    region: "us-central1",
    network: customTestNetwork.id,
});
const connector = new gcp.vpcaccess.Connector("connector", {
    subnet: {
        name: customTestSubnetwork.name,
    },
    machineType: "e2-standard-4",
});
resources:
  connector:
    type: gcp:vpcaccess:Connector
    properties:
      subnet:
        name: ${customTestSubnetwork.name}
      machineType: e2-standard-4
  customTestSubnetwork:
    type: gcp:compute:Subnetwork
    properties:
      ipCidrRange: 10.2.0.0/28
      region: us-central1
      network: ${customTestNetwork.id}
  customTestNetwork:
    type: gcp:compute:Network
    properties:
      autoCreateSubnetworks: false

Create Connector Resource

new Connector(name: string, args?: ConnectorArgs, opts?: CustomResourceOptions);
@overload
def Connector(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              ip_cidr_range: Optional[str] = None,
              machine_type: Optional[str] = None,
              max_instances: Optional[int] = None,
              max_throughput: Optional[int] = None,
              min_instances: Optional[int] = None,
              min_throughput: Optional[int] = None,
              name: Optional[str] = None,
              network: Optional[str] = None,
              project: Optional[str] = None,
              region: Optional[str] = None,
              subnet: Optional[ConnectorSubnetArgs] = None)
@overload
def Connector(resource_name: str,
              args: Optional[ConnectorArgs] = None,
              opts: Optional[ResourceOptions] = None)
func NewConnector(ctx *Context, name string, args *ConnectorArgs, opts ...ResourceOption) (*Connector, error)
public Connector(string name, ConnectorArgs? args = null, CustomResourceOptions? opts = null)
public Connector(String name, ConnectorArgs args)
public Connector(String name, ConnectorArgs args, CustomResourceOptions options)
type: gcp:vpcaccess:Connector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConnectorArgs
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 ConnectorArgs
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 ConnectorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConnectorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConnectorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Connector 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 Connector resource accepts the following input properties:

IpCidrRange string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

MachineType string

Machine type of VM Instance underlying connector. Default is e2-micro

MaxInstances int

Maximum value of instances in autoscaling group underlying the connector.

MaxThroughput int

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

MinInstances int

Minimum value of instances in autoscaling group underlying the connector.

MinThroughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

Name string

The name of the resource (Max 25 characters).

Network string

Name or self_link of the VPC network. Required if ip_cidr_range is set.

Project string

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

Region string

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

Subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

IpCidrRange string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

MachineType string

Machine type of VM Instance underlying connector. Default is e2-micro

MaxInstances int

Maximum value of instances in autoscaling group underlying the connector.

MaxThroughput int

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

MinInstances int

Minimum value of instances in autoscaling group underlying the connector.

MinThroughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

Name string

The name of the resource (Max 25 characters).

Network string

Name or self_link of the VPC network. Required if ip_cidr_range is set.

Project string

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

Region string

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

Subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ipCidrRange String

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machineType String

Machine type of VM Instance underlying connector. Default is e2-micro

maxInstances Integer

Maximum value of instances in autoscaling group underlying the connector.

maxThroughput Integer

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

minInstances Integer

Minimum value of instances in autoscaling group underlying the connector.

minThroughput Integer

Minimum throughput of the connector in Mbps. Default and min is 200.

name String

The name of the resource (Max 25 characters).

network String

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project String

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

region String

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ipCidrRange string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machineType string

Machine type of VM Instance underlying connector. Default is e2-micro

maxInstances number

Maximum value of instances in autoscaling group underlying the connector.

maxThroughput number

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

minInstances number

Minimum value of instances in autoscaling group underlying the connector.

minThroughput number

Minimum throughput of the connector in Mbps. Default and min is 200.

name string

The name of the resource (Max 25 characters).

network string

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project string

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

region string

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ip_cidr_range str

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machine_type str

Machine type of VM Instance underlying connector. Default is e2-micro

max_instances int

Maximum value of instances in autoscaling group underlying the connector.

max_throughput int

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

min_instances int

Minimum value of instances in autoscaling group underlying the connector.

min_throughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

name str

The name of the resource (Max 25 characters).

network str

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project str

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

region str

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ipCidrRange String

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machineType String

Machine type of VM Instance underlying connector. Default is e2-micro

maxInstances Number

Maximum value of instances in autoscaling group underlying the connector.

maxThroughput Number

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

minInstances Number

Minimum value of instances in autoscaling group underlying the connector.

minThroughput Number

Minimum throughput of the connector in Mbps. Default and min is 200.

name String

The name of the resource (Max 25 characters).

network String

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project String

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

region String

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

subnet Property Map

The subnet in which to house the connector Structure is documented below.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

SelfLink string

The fully qualified name of this VPC connector

State string

State of the VPC access connector.

Id string

The provider-assigned unique ID for this managed resource.

SelfLink string

The fully qualified name of this VPC connector

State string

State of the VPC access connector.

id String

The provider-assigned unique ID for this managed resource.

selfLink String

The fully qualified name of this VPC connector

state String

State of the VPC access connector.

id string

The provider-assigned unique ID for this managed resource.

selfLink string

The fully qualified name of this VPC connector

state string

State of the VPC access connector.

id str

The provider-assigned unique ID for this managed resource.

self_link str

The fully qualified name of this VPC connector

state str

State of the VPC access connector.

id String

The provider-assigned unique ID for this managed resource.

selfLink String

The fully qualified name of this VPC connector

state String

State of the VPC access connector.

Look up Existing Connector Resource

Get an existing Connector 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?: ConnectorState, opts?: CustomResourceOptions): Connector
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ip_cidr_range: Optional[str] = None,
        machine_type: Optional[str] = None,
        max_instances: Optional[int] = None,
        max_throughput: Optional[int] = None,
        min_instances: Optional[int] = None,
        min_throughput: Optional[int] = None,
        name: Optional[str] = None,
        network: Optional[str] = None,
        project: Optional[str] = None,
        region: Optional[str] = None,
        self_link: Optional[str] = None,
        state: Optional[str] = None,
        subnet: Optional[ConnectorSubnetArgs] = None) -> Connector
func GetConnector(ctx *Context, name string, id IDInput, state *ConnectorState, opts ...ResourceOption) (*Connector, error)
public static Connector Get(string name, Input<string> id, ConnectorState? state, CustomResourceOptions? opts = null)
public static Connector get(String name, Output<String> id, ConnectorState 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:
IpCidrRange string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

MachineType string

Machine type of VM Instance underlying connector. Default is e2-micro

MaxInstances int

Maximum value of instances in autoscaling group underlying the connector.

MaxThroughput int

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

MinInstances int

Minimum value of instances in autoscaling group underlying the connector.

MinThroughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

Name string

The name of the resource (Max 25 characters).

Network string

Name or self_link of the VPC network. Required if ip_cidr_range is set.

Project string

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

Region string

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

SelfLink string

The fully qualified name of this VPC connector

State string

State of the VPC access connector.

Subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

IpCidrRange string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

MachineType string

Machine type of VM Instance underlying connector. Default is e2-micro

MaxInstances int

Maximum value of instances in autoscaling group underlying the connector.

MaxThroughput int

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

MinInstances int

Minimum value of instances in autoscaling group underlying the connector.

MinThroughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

Name string

The name of the resource (Max 25 characters).

Network string

Name or self_link of the VPC network. Required if ip_cidr_range is set.

Project string

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

Region string

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

SelfLink string

The fully qualified name of this VPC connector

State string

State of the VPC access connector.

Subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ipCidrRange String

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machineType String

Machine type of VM Instance underlying connector. Default is e2-micro

maxInstances Integer

Maximum value of instances in autoscaling group underlying the connector.

maxThroughput Integer

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

minInstances Integer

Minimum value of instances in autoscaling group underlying the connector.

minThroughput Integer

Minimum throughput of the connector in Mbps. Default and min is 200.

name String

The name of the resource (Max 25 characters).

network String

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project String

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

region String

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

selfLink String

The fully qualified name of this VPC connector

state String

State of the VPC access connector.

subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ipCidrRange string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machineType string

Machine type of VM Instance underlying connector. Default is e2-micro

maxInstances number

Maximum value of instances in autoscaling group underlying the connector.

maxThroughput number

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

minInstances number

Minimum value of instances in autoscaling group underlying the connector.

minThroughput number

Minimum throughput of the connector in Mbps. Default and min is 200.

name string

The name of the resource (Max 25 characters).

network string

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project string

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

region string

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

selfLink string

The fully qualified name of this VPC connector

state string

State of the VPC access connector.

subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ip_cidr_range str

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machine_type str

Machine type of VM Instance underlying connector. Default is e2-micro

max_instances int

Maximum value of instances in autoscaling group underlying the connector.

max_throughput int

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

min_instances int

Minimum value of instances in autoscaling group underlying the connector.

min_throughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

name str

The name of the resource (Max 25 characters).

network str

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project str

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

region str

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

self_link str

The fully qualified name of this VPC connector

state str

State of the VPC access connector.

subnet ConnectorSubnetArgs

The subnet in which to house the connector Structure is documented below.

ipCidrRange String

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

machineType String

Machine type of VM Instance underlying connector. Default is e2-micro

maxInstances Number

Maximum value of instances in autoscaling group underlying the connector.

maxThroughput Number

Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300.

minInstances Number

Minimum value of instances in autoscaling group underlying the connector.

minThroughput Number

Minimum throughput of the connector in Mbps. Default and min is 200.

name String

The name of the resource (Max 25 characters).

network String

Name or self_link of the VPC network. Required if ip_cidr_range is set.

project String

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

region String

Region where the VPC Access connector resides. If it is not provided, the provider region is used.

selfLink String

The fully qualified name of this VPC connector

state String

State of the VPC access connector.

subnet Property Map

The subnet in which to house the connector Structure is documented below.

Supporting Types

ConnectorSubnet

Name string

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"

ProjectId string

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

Name string

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"

ProjectId string

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

name String

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"

projectId String

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

name string

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"

projectId string

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

name str

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"

project_id str

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

name String

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"

projectId String

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

Import

Connector can be imported using any of these accepted formats

 $ pulumi import gcp:vpcaccess/connector:Connector default projects/{{project}}/locations/{{region}}/connectors/{{name}}
 $ pulumi import gcp:vpcaccess/connector:Connector default {{project}}/{{region}}/{{name}}
 $ pulumi import gcp:vpcaccess/connector:Connector default {{region}}/{{name}}
 $ pulumi import gcp:vpcaccess/connector:Connector 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.