Managed VM and static IPs

83 views
Skip to first unread message

Stefano Ciccarelli

unread,
Jun 10, 2015, 8:20:58 AM6/10/15
to GAE Group
Hello,

I have a GAE app that need to URLFetch a service that uses IP based authentication, so I need to use a https proxy.

I'd like to setup a single managed VM instance (custom runtime) inside my App Engine to act as an https proxy toward that service, but I don't know how to configure the static IP.

The docker container is ready and I'm already using it with a regular GCE instance, but I'd like to use managed VM, so, how can I setup a static IP?

Thanks
Stefano

Nick (Cloud Platform Support)

unread,
Jun 10, 2015, 3:15:13 PM6/10/15
to google-a...@googlegroups.com, stefano.c...@mmbsoftware.it
Static IP addresses are a feature of Compute Engine instances, and you'll need to switch your Managed VM instance from Google-managed to User-managed to be able to assign it a static IP. You can do this via the Developers Console or with the gcloud SDK.

Managed VMs, when Google-managed by default, are really meant more for ephemeral tasks and the power of scaling, along with easing deployment of custom runtimes which can access the App Engine services, or of using App Engine with sockets, file-system, and multi-processing allowed. It might be simpler for you to just continue to deploy your proxy as a Compute Engine instance.

Michael Prentice

unread,
Aug 10, 2015, 12:32:59 AM8/10/15
to Google App Engine, stefano.c...@mmbsoftware.it
One issue with this is that if you are using a nodejs Managed VM runtime (as shown in the Code Lab here) to host an Express web server. It really needs to be possible to keep a static IP pointing to your Managed VM instance.

If you do User-Managed, you lose all of the autoscaling and more right?

Michael Prentice
GDG Space Coast
Reply all
Reply to author
Forward
0 new messages