VPC Peering (GCP)
Step 5 — VPC network peering
Section titled “Step 5 — VPC network peering”The transport
GCP Transport — a Network Connectivity resource created via `gcloud beta network-connectivity transports create`. Represents the GCP side of the cross-cloud interconnect link. creates a managed peering network. Peer your workload VPC
Virtual Private Cloud — an isolated private network. Both AWS and GCP use VPCs. The interconnect peers the two VPCs for private routing. to it so routes flow to your GCE
Google Compute Engine — GCP virtual machine instances. The demo GCE VM is reachable via IAP tunnel SSH. VM.
export PEERING_NETWORK="$(gcloud beta network-connectivity transports describe "$TRANSPORT_NAME" \ --region="$GCP_REGION" \ --format='value(peeringNetwork)')"export PEERING_NAME="demo-aws-peering"
gcloud compute networks peerings create "$PEERING_NAME" \ --network="$GCP_NETWORK" \ --peer-network="$PEERING_NETWORK" \ --stack-type=IPV4_ONLY \ --import-custom-routes \ --export-custom-routesVerify peering is active
Section titled “Verify peering is active”gcloud compute networks peerings list --network="$GCP_NETWORK"You should see STATE: ACTIVE and STATE_DETAILS: Connected.
What happens next
Section titled “What happens next”After Step 5, GCP
Google Cloud Platform — the cloud provider connected to AWS via Interconnect multicloud in this walkthrough. configuration is complete. The interconnect stays Pending on AWS until backend provisioning finishes — often 5–30 minutes.
Poll in Step 6 (Verify Routing); do not recreate transport or peering while waiting.