» google_vpc_access_connector

Serverless VPC Access connector resource.

To get more information about Connector, see:

» Example Usage - VPC Access Connector

resource "google_vpc_access_connector" "connector" {
  name          = "vpcconn"
  region        = "us-central1"
  ip_cidr_range = ""
  network       = "default"

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the resource (Max 25 characters).

  • network - (Required) Name of a VPC network.

  • ip_cidr_range - (Required) The range of internal addresses that follows RFC 4632 notation. Example:

  • region - (Required) Region where the VPC Access connector resides

  • min_throughput - (Optional) Minimum throughput of the connector in Mbps. Default and min is 200.

  • max_throughput - (Optional) Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 1000.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/{{project}}/locations/{{region}}/connectors/{{name}}

  • state - State of the VPC access connector.

  • self_link - The fully qualified name of this VPC connector

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 6 minutes.
  • delete - Default is 10 minutes.

» Import

Connector can be imported using any of these accepted formats:

$ terraform import google_vpc_access_connector.default projects/{{project}}/locations/{{region}}/connectors/{{name}}
$ terraform import google_vpc_access_connector.default {{project}}/{{region}}/{{name}}
$ terraform import google_vpc_access_connector.default {{region}}/{{name}}
$ terraform import google_vpc_access_connector.default {{name}}

» User Project Overrides

This resource supports User Project Overrides.