1
votes

In Google Pub/Sub, is it possible to use an HTTPS server running on a Compute Engine VM instance as an endpoint for a push subscription? I'm a bit stumped, as in the documentation it says the server must be reachable by a DNS name.

Any advice appreciated - cheers!

1

1 Answers

2
votes

It is possible, but you'll need configure a domain name to point to your GCE instance. That means you need:

  1. A domain name you can assign to the GCE instance.
  2. An SSL certificate signed by a well-known authority. (It has been requested that self-signed SSL certificate support be added, but that hasn't happened thus far).

You can assign a static IP address to your GCE instance and then map the domain name to that IP address either through your own DNS provider or via Cloud DNS.