Skip to content

stratumctl vpc-peerings

Manage VPC peering connections

Terminal window
stratumctl vpc-peerings [flags]

Aliases: vpc-peering, pcx, peerings

Accept a pending peering connection (wires the fabric)

Terminal window
stratumctl vpc-peerings accept <pcx-id> [flags]
Terminal window
stratumctl vpc-peerings accept pcx-3k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Request a VPC peering connection (pending until accepted)

Terminal window
stratumctl vpc-peerings create [flags]
Terminal window
stratumctl vpc-peerings create --project p-team-a --requester-vpc vpc-9k2m4x7q --accepter-vpc vpc-5k8m2x7q
Flag Type Default Description
--accepter-vpc string Accepting VPC ID (required)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--requester-vpc string Requesting VPC ID (required)

Delete a VPC peering connection (routes targeting it blackhole)

Terminal window
stratumctl vpc-peerings delete <pcx-id> [flags]
Terminal window
stratumctl vpc-peerings delete pcx-3k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a VPC peering connection

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

List VPC peering connections in a project

Terminal window
stratumctl vpc-peerings list [flags]
Terminal window
stratumctl vpc-peerings list
stratumctl vpc-peerings 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 to connections where this VPC is requester or accepter

Reject a pending peering connection

Terminal window
stratumctl vpc-peerings reject <pcx-id> [flags]
Terminal window
stratumctl vpc-peerings reject pcx-3k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)