Use GAE with GCE connected with Internal IP

112 views
Skip to first unread message

Diego Barreiro Pérez

unread,
Apr 22, 2018, 5:10:20 PM4/22/18
to Google App Engine
I've been searching on Google about this, but didn't found anything "clear"
Is possible to make a request from a Google App Engine project to a Google Compute Engine instance via its Internal IP?

The idea is to make the network faster. AppEngine would make a request to the Internal IP of the GCE Instance so it will use Google Intranet
Of course, GAE and GCE will be running on the same DataCenter: GAE on europe-west and GCE on europe-west1

Any CONCISE answer will be really appreciated

Kamran (Google Cloud Support)

unread,
Apr 23, 2018, 4:38:40 PM4/23/18
to Google App Engine

Hello Diego,

Communication through internal IP addresses between Google Compute Engine and App Engine Flexible Environment (but not App Engine standard environment) is possible. Because VM instances in the flexible environment are Google Compute Engine virtual machines.

In order to implement the local connectivity between GCE VMs and GAE Flex, if both are running on the same project deploy your GAE app on the same network as of the GCE VM instance. For this purpose, you can configure the network settings of your application on app.yaml file

If the GAE Flex application and GCE VM instance are running on different projects, then you can take advantage of VPC Network Peering to allows private connectivity across two VPC networks regardless of whether or not they belong to the same project or the same organization.

I hope this helps.

Diego Barreiro Pérez

unread,
Apr 23, 2018, 4:52:40 PM4/23/18
to google-a...@googlegroups.com
And why is not possible through the GAE Standard Environment? Because my app is designed for Standard and I guess migrating to Flexible will require a big rewrite on the code

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/rm7tRGfdEWQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c9768838-95bd-4ce7-b196-5253d0073afb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kamran (Google Cloud Support)

unread,
Apr 24, 2018, 6:05:50 PM4/24/18
to Google App Engine

It is not currently possible to access the internal IP addresses of Compute Engine VMs from App Engine Standard as they are on completely different networks (though this is in the works).




On Monday, April 23, 2018 at 4:52:40 PM UTC-4, Diego Barreiro Pérez wrote:
And why is not possible through the GAE Standard Environment? Because my app is designed for Standard and I guess migrating to Flexible will require a big rewrite on the code

On Mon, Apr 23, 2018, 22:38 'Kamran (Google Cloud Support)' via Google App Engine <google-appengine@googlegroups.com> wrote:

Hello Diego,

Communication through internal IP addresses between Google Compute Engine and App Engine Flexible Environment (but not App Engine standard environment) is possible. Because VM instances in the flexible environment are Google Compute Engine virtual machines.

In order to implement the local connectivity between GCE VMs and GAE Flex, if both are running on the same project deploy your GAE app on the same network as of the GCE VM instance. For this purpose, you can configure the network settings of your application on app.yaml file

If the GAE Flex application and GCE VM instance are running on different projects, then you can take advantage of VPC Network Peering to allows private connectivity across two VPC networks regardless of whether or not they belong to the same project or the same organization.

I hope this helps.


On Sunday, April 22, 2018 at 5:10:20 PM UTC-4, Diego Barreiro Pérez wrote:
I've been searching on Google about this, but didn't found anything "clear"
Is possible to make a request from a Google App Engine project to a Google Compute Engine instance via its Internal IP?

The idea is to make the network faster. AppEngine would make a request to the Internal IP of the GCE Instance so it will use Google Intranet
Of course, GAE and GCE will be running on the same DataCenter: GAE on europe-west and GCE on europe-west1

Any CONCISE answer will be really appreciated

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/rm7tRGfdEWQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages