cloud-run-faq icon indicating copy to clipboard operation
cloud-run-faq copied to clipboard

Place Cloud Run into VPC network

Open TKone7 opened this issue 4 years ago • 1 comments

Hey there I first create this issue to make sure I understand this correctly, before creating a PR.

I want to use my serverless functions with a private IP address. Meaning they should not be accessible from the web at all, only from within my VPC.

In the FAQ I found this:

Can I run Cloud Run applications on a private IP? Currently no. Cloud Run applications always have a *.run.app public hostname and they cannot be placed inside a VPC (Virtual Private Cloud) network.

Some further research, however, lead to this article. The article explains how to create a function that can only be called within your VPC network. I think it would be great to update the FAQs.

Regards

TKone7 avatar Mar 30 '21 05:03 TKone7

There's a feature in the works to address this. You still can't have private IPs but there are ways to ensure things are accessible only within the VPC. Keep an eye on the GCP Serverless blog for announcements.

ahmetb avatar Mar 30 '21 05:03 ahmetb