title: Use a fixed public IP (to whitelist) on GCP Cloud Run / Function
body: <p>I'm looking at the best way to deploy an app to GCP. This app neeeds to use a microservice (running on Cloud Run or Cloud Function) to execute SQL code on distant database.</p>
  
  <p>Basically, the microservice received a piece of SQL code, and needs to execute it on a distant database. For security reasons, the distant database will have to whitelist the IP address that the app will use to connect to it.</p>
  
  <p>On GCP, what would be the best way to have a fixed, public IP address, that a distant DB can whitelist ? Considering that I want to use Cloud Run or Cloud Function.</p>
  
  <p>NB : I'm aware of solutions using GKE. Or on AWS, using Lambda + a NAT Instance.</p>
  
  <p>Thanks !</p>