Terminate instance
- Dernière mise à jour2026/03/17
The Terminate instance action deletes one or multiple EC2 instances and returns their state information. Once you terminate an instance, AWS deletes all the EBS volumes that are attached to the instance.
The Terminate instance action uses the session name specified in the Connect action to authenticate the termination request to the base URL. You can specify one instance ID or use a list variable for multiple instance IDs. 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.