Can Google App Engine make a http request to a Compute Engine instance within the same project without an external IP?

后端 未结 2 591
南笙
南笙 2020-12-07 01:31

In App Engine I\'d like to make http fetch calls to a web server running on an Compute Engine instance, created within the same Google cloud project, and I\'m wondering if I

相关标签:
2条回答
  • 2020-12-07 01:57

    This is currently unsupported. Communication between App Engine and GCE must go through the URLFetch API and use a public IP.

    0 讨论(0)
  • 2020-12-07 02:05

    The best way to solve that in the short/medium term is to deploy the VM as a VM-based backend (we are accepting TT applications). You can deploy the VM backend as a different App Engine module of the app. Then you can urlfetch "mymodule.myapp.appspot.com" from the frontend and it will hit your VM without going through the public IP.

    You can also serve your app straight from the VM backend. There you can load classes that are blocked by the normal App Engine sandbox (and well as have full access to all App Engine APIs!). The downside with VM backends is that we don't have auto-scaling yet.

    0 讨论(0)
提交回复
热议问题