Skip to main content

Manage your subnets

Creating a new VPC subnet

Use the networking vpc-subnets create command to create a new VPC subnet. Optionally, you may use the nat-gateway-enabled flag to enable NAT Gateways.

crusoe networking vpc-subnets create \
--name my-new-vpc-subnet \
--location us-east1-a
--vpc-network-id <uuid-of-vpc-network>
--cidr 10.10.0.0/16
--nat-gateway-enabled true

Viewing all VPC subnets

Use the networking vpc-subnets list commands to list existing subnets.


crusoe networking vpc-subnets list

Update an existing VPC subnet

Non-default VPC subnets can be updated in the CLI using the networking vpc-subnets update <id> command. You may update the name, or enable / disable NAT Gateways on the subnet.

crusoe networking vpc-subnets update \
--name my-new-vpc-subnet \
--nat-gateway-enabled true/false

Deleting a VPC subnet

info

Warning: deleting a VPC subnet is a permanant action that will require re-creation of the subnet to recover.

VPC subnets can be deleted in the CLI using the networking vpc-subnets delete <id> command.

If you are having issues working with your VPC subnets, please contact support.