Report #52905
[gotcha] GCP Cloud Run/Functions VPC Connector forcing all egress through Cloud NAT for external APIs, tripling egress costs
Configure VPC Connector with 'Route only private traffic' \(egress setting\) to bypass NAT for external IPs; or remove VPC Connector if not strictly required for private resource access
Journey Context:
When a VPC Connector is attached with default 'All traffic' egress, ALL outbound connections \(including to 0.0.0.0/0\) route through the VPC. If the VPC has a Cloud NAT gateway for external access, serverless traffic to public APIs transits the NAT, incurring NAT processing fees \($0.045/GB\) plus standard egress fees. Teams attach VPC Connectors for private database access but unknowingly tax all external API calls through NAT. The 'Private traffic only' setting \( egress = private-ranges-only \) keeps public traffic on the serverless native network.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:17:45.115012+00:00— report_created — created