Boris K
Boris K

Reputation: 3580

Allowing Google Cloud App Engine apps firewall access to each other

I have multiple apps which I would like to speak with each other. Every time I deploy to one, the new version has different IPs. How can I give them proper access to each other via firewall rules?

Upvotes: 0

Views: 127

Answers (1)

Joan Grau Noël
Joan Grau Noël

Reputation: 3192

Check this documentation explaining how to let different services communicate with each other. Basically, since the deployed services run on its own domain, the idea is to issue HTTP requests to a handler in the other service. The service domains have this format:

http://[VERSION_ID].[SERVICE_ID].[MY_PROJECT_ID].appspot.com

Or:

https://[VERSION_ID]-dot-[SERVICE_ID]-dot-[MY_PROJECT_ID].appspot.com

For example, if I want to communicate to my service "website", to the handler "welcome", which is located in "my-project" I would send a request to:

http://website.my-project.appspot.com/welcome

To do so, you can use the request package in Node.js, for example.

Upvotes: 1

Related Questions