ahmetb / cloud-run-faq

Unofficial FAQ and everything you've been wondering about Google Cloud Run.
https://cloud.run
Creative Commons Attribution 4.0 International
2.32k stars 124 forks source link

Place Cloud Run into VPC network #130

Open TKone7 opened 3 years ago

TKone7 commented 3 years ago

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

ahmetb commented 3 years ago

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.