The Stop instance action enables you to start one or multiple EC2 instances that were stopped earlier. You must specify the IDs of the instances in the action to start those instances.

The Stop instance action stops the instances that use Amazon EBS volumes as their root devices. When you stop any instance, the AWS console shuts down the instance and frees up the resources that the instance uses. The Stop instance also provides options to force stop or hibernate the specified instances.

The Stop instance action requires you to specify the session that you configured using the Connect action. The session setting ensures that the Stop instance is authenticated and makes the request to the base URL specified in the Connect action. After specified EC2 instances stop, the action returns the IDs of the instances and their current and previous states. The states contain a code and its respective name. The State transitions option enables you to save this information in a dictionary variable or individual variables.

Settings

The following settings are available in the Stop instance action:

Session name
The session identifier defined in the Connect action. The system automatically assigns Default as the session name. You can provide a string variable or use a session variable.
Instance IDs
The IDs of EC2 instances to start. Accepts one or more IDs as comma-separated values.
Assign state transitions to variable
Variables that hold the IDs, current and previous state information of each EC2 instance. The following options are available:
  • Multiple variables: Individual variables with keys, each holding a specific instance detail.
  • Dictionary: A single dictionary variable that holds all the instance details.