capabilities.work

Stop and Start Instance Cycle

A 4-step recipe with Amazon EC2. We can help you get access.

Recipe · 4 steps

Stop and Start Instance Cycle

Cycle an instance through stopped and back to running.

  1. Stop the target instance.
  2. Describe the instance and branch on its state, looping while stopping and proceeding once it reports stopped.
  3. Start the stopped instance again.
  4. Describe the instance and branch on its state, looping while pending and ending once it reports running.
What you'll need to have ready
  • instanceId: The ID of the instance to stop and restart.
For your developer

Arazzo workflow amazon-ec2:stop-start-instance-cycle, 4 operations: StopInstances → DescribeInstances → StartInstances → DescribeInstances. Specs on APIs.io.