ybm vpc

Manage account VPCs

This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.

Use the vpc resource to create and delete VPCs.

Syntax

Usage: ybm vpc [command] [flags]

Example

Create a global VPC on GCP:

ybm vpc create \
    --name demo-vpc \
    --cloud-provider GCP \
    --global-cidr 10.0.0.0/18

Commands

create

Create a VPC.

Flag Description
--name Required. Name for the VPC.
--cloud-provider Cloud provider for the VPC. AWS, AZURE, or GCP.
--global-cidr Global CIDR for a GCP VPC.
--region Comma-delimited list of regions for the VPC.
--cidr Comma-delimited list of CIDRs for the regions in the VPC. Only required if --region specified.

delete

Delete a specified VPC.

Flag Description
--name Required. Name of the VPC.

list

List the VPCs configured for your account.

Flag Description
--name Name of a VPC.