library
turbot/gcp
- Add IAM Policy Binding to KMS Key
- Add Labels to Compute Disk
- Add Labels to Compute Image
- Add Labels to Compute Instance
- Add or Update Labels on Compute Snapshot
- Add or Update Labels on Dataproc Cluster
- Add Labels to DNS Managed Zone
- Update Labels on Pub/Sub Subscription
- Add Labels to Pub/Sub Topic
- Add Labels to SQL Instance
- Update Labels on Storage Bucket
- Add Metadata to Instance
- Add Metadata to Compute Project Info
- Attach Compute Disk to Instance
- Clone Cloud SQL Instance
- Create API Key
- Create Compute Disk
- Create Compute Instance
- Create Compute Engine Snapshot
- Create Logging Metric
- Create Logging Sink
- Create Monitoring Policy
- Create Pub/Sub Subscriptions
- Create Pub/Sub Topics
- Create Cloud SQL Instance
- Create Storage Buckets
- Create VPC Firewall Rule
- Create VPC
- Create VPC Subnet
- Delete Access Config from Instance
- Delete All Objects and Storage Bucket
- Delete AlloyDB Cluster
- Delete AlloyDB Instance
- Delete API Key
- Delete Compute Address
- Delete Compute Disk
- Delete Compute Instance
- Delete Compute Engine Snapshot
- Delete Dataproc Cluster
- Delete GKE Cluster
- Delete Pub/Sub Subscriptions
- Delete Pub/Sub Topics
- Delete Redis Instance
- Delete Service Account Key
- Delete Cloud SQL Instance
- Delete Storage Buckets
- Delete VPC Firewall Rule
- Delete VPC Network
- Delete VPC Subnet
- Delete VPN Gateway
- Detach Compute Disk from Instance
- Enable Cloud Service
- Get Compute Instance Details
- List Compute Disks
- List Pub/Sub Topics
- List Storage Buckets
- Remove all Labels from Compute Disk
- Remove IAM Policy Binding from KMS Key
- Remove Labels from Compute Instance
- Remove Labels from Dataproc Cluster
- Remove Labels from DNS Managed Zone
- Remove Labels from SQL Instance
- Remove Labels from Storage Bucket
- Remove Metadata from Instance
- Remove Specific Label from Compute Disk
- Remove Specific Label from Compute Image
- Remove Specific Label from Compute Instance
- Remove Labels from Compute Snapshot
- Remove Labels from Pub/Sub Subscription
- Remove Labels from Pub/Sub Topic
- Set Machine Type
- Set Service Account for Instance
- Start Compute Instance
- Stop Compute Instance
- Stop SQL Instance
- Manage Pub/Sub topic
- Update Access Approval Settings
- Update API Key
- Update Compute Backend Service
- Update Compute Disk
- Update Compute Instance
- Update Compute Node Group
- Update DNS Managed Zone
- Update KMS Key
- Update Logging Bucket
- Update Pub/Sub Subscriptions
- Update Pub/Sub Topics
- Update SQL Instance
- Update Storage Bucket
- Update VPC Firewall Rule
- Update VPC Subnet
Get Involved
Version
Delete VPC Subnet
This pipeline deletes one or more Google Cloud subnetworks. Subnetworks can only be deleted when no other resources, such as VM instances, refer to them.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.delete_vpc_subnet \ --arg 'project_id=<string>' \ --arg 'subnet_name=<string>' \ --arg 'region=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.delete_vpc_subnet args = { project_id = <string> subnet_name = <string> region = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
cred | string | Yes | The GCP application credentials file path. | default |
project_id | string | Yes | The GCP project ID. | - |
subnet_name | string | Yes | The name of the subnet to delete. | - |
region | string | Yes | The GCP region for the subnet. | - |
Outputs
This pipeline has no outputs.