Private access to cloud services — Azure · AWS · GCP
Private Service Connect (PSC) allows private, RFC 1918 IP access to Google-managed and third-party services without traversing the public internet. The Azure equivalent is Private Link, and AWS uses VPC Endpoints / PrivateLink.
# Producer creates service attachment gcloud compute service-attachments create my-svc-attach \ --region=us-central1 \ --producer-forwarding-rule=my-forwarding-rule \ --connection-preference=ACCEPT_AUTOMATIC \ --nat-subnets=psc-nat-subnet # Consumer creates endpoint gcloud compute forwarding-rules create psc-endpoint \ --region=us-central1 \ --network=consumer-vpc \ --address=172.16.1.100 \ --target-service-attachment=projects/producer-project/regions/us-central1/serviceAttachments/my-svc-attach
az network private-endpoint create \ --name myPE --resource-group prod-rg \ --vnet-name myVNet --subnet mySubnet \ --private-connection-resource-id \ /subscriptions/.../storageAccounts/myblob \ --group-id blob
aws ec2 create-vpc-endpoint \ --vpc-id vpc-xxx \ --service-name \ com.amazonaws.region.s3 \ --vpc-endpoint-type Gateway \ --route-table-ids rtb-xxx
gcloud compute forwarding-rules create \ psc-ep --region=us-central1 \ --network=my-vpc \ --target-service-attachment=\ projects/PROD/regions/us-central1/\ serviceAttachments/my-attach