library
turbot/gcp
OverviewPipelines
0
Triggers
0
Variables
GitHub

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

NameTypeRequiredDescriptionDefault
credstringYesThe GCP application credentials file path.default
project_idstringYesThe GCP project ID.-
network_namestringYesThe name of the existing VPC network.-
subnet_namestringYesThe name of the subnet to create.-
regionstringYesThe GCP region for the subnet.-
rangestringYesThe GCP region for the subnet.-

Outputs

NameDescription
subnetInformation about the created subnet.