How to start or stop Amazon EC2 instance from Google App Engine (python)

Is there a way to start / stop an Amazon EC2 instance from Google App Engine?
I read this question In python, how do you launch an Amazon EC2 instance from a Google App Engine application? , and it seems to me that the answer there is incorrect.

Basically, I cannot install "boto" in the application engine.

+4
source share
3 answers

Have you viewed KOALA ? It (more or less) rewrites boto for EC2, S3, EBS and ELB, which runs on the App Engine. On your page:

KOALA (Karlsruhe Open Application (for) cLoud Administration) is software designed to work with your Amazon Web Services (AWS) compatible with cloud services and infrastructures (IaaS). Amazon AWS public and private cloud services based on Eucalyptus, Halo, or OpenNebula supported. Storage services Google Storage and Host Europe Cloud Storage can be used with KOALA too

KOALA Helps Interoperate with Cloud Services Implementing APIs

Flexible Cloud Computing (EC2)

Simple Storage Service (S3)

Elastic Block Store (EBS)

Flexible load balancing (ELB)

With KOALA, users can start, stop, and control their instances, volumes, and elastic IP address. They can also create and erase buckets inside S3-compatible storage services S3, Google Storage and Walrus. It is easy to download, verify and modify the data stored inside these storage services, just as you can do it using S3Fox and Google Storage Manager.

KOALA itself is a service that can run inside the Google App Engine's shared cloud (PaaS) platform and inside private cloud platforms with AppScale or typhoonAE.

+2
source

see Launching Boto on the Google App Engine (GAE)

just copy the boto files to the root of your project.

0
source

Well, simple, just deploy the cron task in the App Engine application.

You will need to make calls from the Spring controller to your EC2 account. First make sure that you already have an active EC2 account and that you have an image that you want to run. You also need to connect the EBS volume to this instance.

For external connections, the GAE security model requires the use of the URLFetch utility. Therefore, the AWS API will not work for you. To connect to AWS, download the following adapted AWS API

For more information on using URLFetch:

[blog] http://javagoogleappspot.blogspot.be/2010/10/control-your-ec2-instance-with-google.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+blogspot/pJlip+%28Google+app+eng%% 29th

0
source

Source: https://habr.com/ru/post/1391153/


All Articles