blob: cd95c9a29e360fc18719b004bb92290055ca3451 [file] [log] [blame] [edit]
---
subcategory: "Serverless VPC Access"
description: |-
Get a Serverless VPC Access connector.
---
# google\_vpc\_access\_connector
Get a Serverless VPC Access connector.
To get more information about Connector, see:
* [API documentation](https://cloud.google.com/vpc/docs/reference/vpcaccess/rest/v1/projects.locations.connectors)
* How-to Guides
* [Configuring Serverless VPC Access](https://cloud.google.com/vpc/docs/configure-serverless-vpc-access)
## Example Usage
```hcl
data "google_vpc_access_connector" "sample" {
name = "vpc-con"
}
resource "google_vpc_access_connector" "connector" {
name = "vpc-con"
ip_cidr_range = "10.8.0.0/28"
network = "default"
region = "us-central1"
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) Name of the resource.
- - -
* `project` - (Optional) The ID of the project in which the resource belongs. If it
is not provided, the provider project is used.
* `region` - (Optional) The region in which the resource belongs. If it
is not provided, the provider region is used.
## Attributes Reference
See [google_vpc_access_connector](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/vpc_access_connector) resource for details of the available attributes.