docs(cloud-function-v2): remove redundant vpc_connector block in examples (#3920)

This commit is contained in:
Ludovico Magnocavallo
2026-04-28 19:44:56 +02:00
committed by GitHub
parent 35615dd967
commit 3ae591b69b

View File

@@ -351,7 +351,7 @@ module "cf_http" {
# tftest fixtures=fixtures/vpc-connector.tf inventory=service-vpc-access-connector.yaml
```
If creation of the VPC Access Connector is required, use the `vpc_connector.create` and `vpc_connector_create` variable which also supports optional attributes like number of instances, machine type, or throughput.
If creation of the VPC Access Connector is required, set `vpc_connector_create` to configure the connector with optional attributes like number of instances, machine type, or throughput.
```hcl
module "cf_http" {
@@ -363,9 +363,6 @@ module "cf_http" {
bundle_config = {
path = "assets/sample-function/"
}
vpc_connector = {
create = true
}
vpc_connector_create = {
ip_cidr_range = "10.10.10.0/28"
network = var.vpc.self_link
@@ -390,9 +387,6 @@ module "cf_http" {
bundle_config = {
path = "assets/sample-function/"
}
vpc_connector = {
create = true
}
vpc_connector_create = {
machine_type = "e2-standard-4"
subnet = {