library
turbot/gcp
Get Involved
Version
Pipeline: Create VPC Subnet
This pipeline define a subnetwork for a network in custom subnet mode. Subnets must be uniquely named per region.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.create_vpc_subnet \  --arg 'project_id=<string>' \  --arg 'network_name=<string>' \  --arg 'subnet_name=<string>' \  --arg 'region=<string>' \  --arg 'range=<string>'Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" {  pipeline = gcp.pipeline.create_vpc_subnet    args = {    project_id = <string>    network_name = <string>    subnet_name = <string>    region = <string>    range = <string>  }}Params
| Name | Type | Required | Description | Default | 
|---|---|---|---|---|
| conn | connection.gcp  | Yes | Name of GCP connection to use. If not provided, the default GCP connection will be used. | connection.gcp.default | 
| project_id | string  | Yes | The GCP project ID. | - | 
| network_name | string  | Yes | The name of the existing VPC network. | - | 
| subnet_name | string  | Yes | The name of the subnet to create. | - | 
| region | string  | Yes | The GCP region for the subnet. | - | 
| range | string  | Yes | The GCP region for the subnet. | - | 
Outputs
| Name | Description | 
|---|---|
| subnet | Information about the created subnet. |