Cipher
Cipher

Reputation: 87

How to obtain the public ip address from my google cloud platform project

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

Answers (2)

Vicente Ayala
Vicente Ayala

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.

@John Hanley

Upvotes: 1

thecloudguy
thecloudguy

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

Related Questions