» google_vpc_access_connector

Serverless VPC Access connector resource.

To get more information about Connector, see:

» Example Usage - VPC Access Connector

provider "google-beta" {}

resource "google_vpc_access_connector" "connector" {
  name          = "my-connector"
  provider      = "google-beta"
  region        = "us-central1"
  ip_cidr_range = "10.8.0.0/28"
  network       = "default"
}

» Argument Reference

The following arguments are supported:

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

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

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


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

  • 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:

  • 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 -provider=google-beta google_vpc_access_connector.default projects/{{project}}/locations/{{region}}/connectors/{{name}}
$ terraform import -provider=google-beta google_vpc_access_connector.default {{project}}/{{region}}/{{name}}
$ terraform import -provider=google-beta google_vpc_access_connector.default {{region}}/{{name}}
$ terraform import -provider=google-beta google_vpc_access_connector.default {{name}}

» User Project Overrides

This resource supports User Project Overrides.