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
with Amazon EC2
Cycle an instance through stopped and back to running.
- Stop the target instance.
- Describe the instance and branch on its state, looping while stopping and proceeding once it reports stopped.
- Start the stopped instance again.
- 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.