Skip to content

stratumctl route-tables

Manage route tables

Terminal window
stratumctl route-tables [flags]

Aliases: route-table, rtb, rtbs

Associate a subnet with a route table

Terminal window
stratumctl route-tables associate <rtb-id> [flags]
Terminal window
stratumctl route-tables associate rtb-5k8m2x7q --project p-team-a --subnet subnet-3k8m2x7q
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--subnet string Subnet ID (required)

Create a custom route table

Terminal window
stratumctl route-tables create [flags]
Terminal window
stratumctl route-tables create --project p-team-a --vpc vpc-9k2m4x7q --name private-rt
Flag Type Default Description
--name string Route table name (defaults to the generated ID)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--vpc string Parent VPC ID (required)

Delete a custom route table (must have no associated subnets)

Terminal window
stratumctl route-tables delete <rtb-id> [flags]
Terminal window
stratumctl route-tables delete rtb-5k8m2x7q
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Return a subnet to the VPC’s main route table

Terminal window
stratumctl route-tables disassociate <rtb-id> [flags]
Terminal window
stratumctl route-tables disassociate rtb-5k8m2x7q --project p-team-a --subnet subnet-3k8m2x7q
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--subnet string Subnet ID (required)

Describe a route table (routes + associated subnets)

Terminal window
stratumctl route-tables get <rtb-id> [flags]
Terminal window
stratumctl route-tables get rtb-5k8m2x7q
stratumctl route-tables get rtb-5k8m2x7q --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List route tables in a project

Terminal window
stratumctl route-tables list [flags]
Terminal window
stratumctl route-tables list
stratumctl route-tables list --vpc vpc-9k2m4x7q --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--vpc string Filter by VPC ID

Atomically replace the static-route set on a route table

Terminal window
stratumctl route-tables set-routes <rtb-id> [flags]

Atomically replace the static-route set (PUT semantics).

Each –route is <destinationCidr>=<targetType>[:<targetId>], e.g.:

Terminal window
stratumctl network route-tables set-routes rtb-abc \
--route 192.168.0.0/16=networkInterface:nic-fw1 \
--route 0.0.0.0/0=internetGateway

Passing zero –route flags clears the table.

Terminal window
stratumctl route-tables set-routes rtb-5k8m2x7q --route 0.0.0.0/0=natGateway:natgw-6k2m8x4q7a
stratumctl route-tables set-routes rtb-5k8m2x7q --route 192.168.0.0/16=networkInterface:nic-7k2m9x4q8a --route 0.0.0.0/0=internetGateway
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--route stringArray Route as <destinationCidr>=<targetType>[:<targetId>] (repeatable)

Update a route table’s name / tags

Terminal window
stratumctl route-tables update <rtb-id> [flags]
Terminal window
stratumctl route-tables update rtb-5k8m2x7q --name private-rt-2
stratumctl route-tables update rtb-5k8m2x7q --tag env=prod --tag team=a
Flag Type Default Description
--name string New route table name
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--tag stringToString Tag key=value (repeatable; replaces the whole tag set)