Problem/Motivation

  • Stop AWS instance by REST API

Proposed resolution

  • Add a REST API to the cloud module to stop AWS instance

Issue fork cloud-3227078

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Ryo Yamashita created an issue. See original summary.

Ryo Yamashita’s picture

Status: Needs work » Needs review

@yas

I have created a patch. Could you please check it?

yas’s picture

Status: Needs review » Reviewed & tested by the community

@ryo-yamashita

Thank you for supplying the patch. It looks good so I'll merge the patch to 4.x and close this issue as Fixed.

The logic looks the same as #3225614: Add a REST API to start AWS Cloud instance, so please consider to unify the methods by using a reflection. That is, startInstance() and stopInstance() should call the common function having the same logic. Thanks!

  • yas committed fed7bf1 on 4.x authored by Ryo Yamashita
    Issue #3227078 by Ryo Yamashita, yas: Add a REST API to stop AWS Cloud...

yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.