shlogg · Early preview
Mkdev.me @mkdev_me

Connecting Cloud Run Directly To VPC Without Serverless VPC

GCP Cloud Run now allows direct connection to VPC components without Serverless VPC, simplifying communication since summer 2023 beta release.

Today, we are going to explore perhaps the end of a classic in GCP Cloud Run. Every time we want to communicate with a VPC, we need to use complex elements like Serverless VPC. We have numerous articles, videos, and even a webinar addressing this problem. However, since summer 2023, there has been a beta version that allows us to connect our Cloud Run service or job directly to a component inside a VPC without Serverless VPC.
First, we are going to create our destination, and to do that, we will start a Compute Engine machine with a Docker container running a web server.
Here's how we create t...