David542
David542

Reputation: 110562

Route static IP to Google Cloud Function

I have the following (python3.7) Cloud Function written that return "Hello":

https://us-central1-first-outlet-750.cloudfunctions.net/test

I would like to route a domain to this IP. So that someone can use our company URL instead of having to remember the long Google URL to enter in. For example, the a user to be able to enter in:

https://mycompany.com/test

And it to route to the Google URL. What would be the cleanest way to achieve this? For example, some options are:

Here's a similar question, but is more in line with function egress rather than what I'm looking to do: Possible to get static IP address for Google Cloud Functions?

Upvotes: 0

Views: 1090

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317928

You can do this with Firebase Hosting integration with Cloud Functions. You will have to connect your domain to Firebase Hosting, then set up a rewrite rule to proxy a URL pattern to your function.

Upvotes: 2

Related Questions