The Terminate instance action enables you to terminate the specified EC2 instances and returns their state information. Once you terminate an instance, the EC2 console deletes all the EBS volumes that are attached to the instance.

The Terminate instance requires that you connect to the AWS console using the Connect action for authentication. You can specify one instance ID or use a list variable to specify multiple instance IDs. After the EC2 instance is successfully terminated, the action returns the IDs, previous states, and current states of each instance. For more information about various states, see Instance states.

Settings

The following settings are available in the Terminate 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.