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:
And it to route to the Google URL. What would be the cleanest way to achieve this? For example, some options are:
- Set up some flask server and redirect to the GCF url (though sort of defeats the purpose of "auto-scale" as all the IP requests have to route through our own apache server.
- Set up some kind of API Gateway so that it routes traffic to that. Is it possible to do this in GCP? If so, how can I do that?
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?