Reputation: 87
I am trying to get the public ip address from my GCP project so i can access AWS (protected by ip). I tried using Cloud Shell to get the public ip address of my GCP project or my Google Cloud Functions, but i am not sure what ip is my public ip, or what command should i use. Can someone show me where or how to get the address of my project? or what public ip address Google Functions use?
Upvotes: 1
Views: 5546
Reputation: 301
Google Cloud Projects (the resource) does not have a public IP address. Some services such as Google Compute Engine and load balancers do/can have public IP addresses assigned. 2) Cloud Functions do not have static public IP addresses. You can use Serverless VPC Access with Cloud Functions to route functions traffic through your VPC.
The region will affect the range of IP addresses that Cloud Functions use. However, your function does not have its own public IP address. There is a Google frontend that proxies requests. External applications see the frontend's IP address which is a pool of addresses.
Upvotes: 1
Reputation: 351
https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address
List static external IP addresses To list static external IP addresses that you have reserved for your project, use the console, run compute addresses list or make a GET request to the API.
In gcloud Use the compute addresses list command
gcloud compute addresses list
Upvotes: 0