0
votes

I want to be able to send a command from Google AppEngine to my Compute Engine.

More specifically, I want to install pdftk on my Compute Engine and be able to send data to the Compute Engine through my Google App Engine.

  • Google App Engine receives data
  • Google App Engine sends data to Compute Engine
  • Compute Engine runs pdftk, creates the PDF, maybe uploads it to Google Cloud Storage or sends it back to Google App Engine where Google App Engine uploads it
  • Google App Engine sends temporary public link to the file.

I'm just having trouble figuring out how to link my AppEngine with my Compute engine.

I want to be able to do this in PHP. Could anyone point me to some examples. I have looked through all the API Reference stuff but I don't really understand it.

1

1 Answers

1
votes

An App Engine instance can talk to a Compute Engine instance the same way as any two servers talk to each other over the Internet, for example, by using GET and POST http requests.

If instances belong to different projects, you will need to use a public Ip address for your Compute Engine instances. See for more details: Can Google App Engine make a http request to a Compute Engine instance within the same project without an external IP?