Skip to content

stratumctl vpcs

Manage VPCs

Terminal window
stratumctl vpcs [flags]

Aliases: vpc

Associate a secondary IPv4 CIDR block with a VPC

Terminal window
stratumctl vpcs associate-cidr <vpc-id> [flags]
Terminal window
stratumctl vpcs associate-cidr vpc-9k2m4x7q --project p-team-a --cidr-block 10.1.0.0/16
Flag Type Default Description
--cidr-block string IPv4 CIDR block (required)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Create a VPC (returns 202; poll vpcs get until state=available)

Terminal window
stratumctl vpcs create <name> [flags]
Terminal window
stratumctl vpcs create web-vpc
stratumctl vpcs create web-vpc --cidr-block 198.18.0.0/16 --internet-gateway
Flag Type Default Description
--cidr-block string CIDR block (/16-/28 RFC1918); omitted = the next free /16 of 10.0.0.0/8 in the project
--description string Free-form description
--display-name string Human-friendly display name
--internet-gateway bool false Internet Gateway at create time; without the flag the API’s default applies (on), –internet-gateway=false creates the VPC without one
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--region string Region override

Ask for the project’s default VPC (AWS create-default-vpc); 202, built by the reconciler

Terminal window
stratumctl vpcs create-default [flags]
Terminal window
stratumctl vpcs create-default
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Show the project’s default VPC (creating, available, declined, deleted, error)

Terminal window
stratumctl vpcs default [flags]
Terminal window
stratumctl vpcs default
stratumctl vpcs default --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Soft-delete a VPC (must have IGW disabled + no children)

Terminal window
stratumctl vpcs delete <vpc-id> [flags]
Terminal window
stratumctl vpcs delete vpc-9k2m4x7q
Flag Type Default Description
--force bool false delete a platform-owned resource anyway (needs platform:ManageInternal; audited; the platform re-creates it)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Disassociate a secondary IPv4 CIDR block from a VPC

Terminal window
stratumctl vpcs disassociate-cidr <vpc-id> [flags]
Terminal window
stratumctl vpcs disassociate-cidr vpc-9k2m4x7q --project p-team-a --cidr-block 10.1.0.0/16
Flag Type Default Description
--cidr-block string IPv4 CIDR block (required)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a VPC

Terminal window
stratumctl vpcs get <vpc-id> [flags]
Terminal window
stratumctl vpcs get vpc-9k2m4x7q
stratumctl vpcs get vpc-9k2m4x7q --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List VPCs in a project

Terminal window
stratumctl vpcs list [flags]
Terminal window
stratumctl vpcs list
stratumctl vpcs list --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Enable or disable auto instance DNS hostnames on a VPC

Terminal window
stratumctl vpcs set-dns-hostnames <vpc-id> [flags]
Terminal window
stratumctl vpcs set-dns-hostnames vpc-9k2m4x7q --enable
stratumctl vpcs set-dns-hostnames vpc-9k2m4x7q --disable
Flag Type Default Description
--disable bool false Disable auto instance DNS hostnames
--enable bool false Enable auto instance DNS hostnames
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Enable or disable the Internet Gateway on a VPC

Terminal window
stratumctl vpcs set-igw <vpc-id> [flags]
Terminal window
stratumctl vpcs set-igw vpc-9k2m4x7q --enable
stratumctl vpcs set-igw vpc-9k2m4x7q --disable
Flag Type Default Description
--disable bool false Disable the IGW
--enable bool false Enable the IGW
--force bool false disable the IGW of a platform-owned VPC anyway (needs platform:ManageInternal; audited)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)