EC2 Terminate Instances

Amazon Web Services (AWS)’s Elastic Compute Cloud (EC2) is a commercial web service that allows users to rent virtual computers. Using AWS EC2’s cloud infrastructure, you can build powerful servers in the cloud. This service completely eliminates the need to set up and invest in hardware, enabling you to deploy your apps quickly. With AWS EC2, you can set up servers, configure networking and security, and manage storage.

An instance is nothing but a virtual machine. AWS offers a variety of instance types, which are various combinations of CPU, storage, memory, networking capacity, and so on.  

Amazon Elastic Block Store (EBS) provides block level storage volumes that you can use with your EC2 instances. You can attach an EBS volume to any running EC2 instance and can use it as primary storage for databases, file systems, or any app that requires frequent updates and quick access to the data.

If you wish to terminate an EC2 instance, you can do so by using this action. To do this, you first need to configure the action, and select the required AWS connection. Select the region in which the instance resides. Next, enter the ID of the EC2 instance that you want to terminate. You can terminate multiple instance in one go by providing multiple IDs. You can also perform a dry run before terminating the instance. This dry run will check if you have the required permissions to start an instance. Once you have entered all the required details, click on ‘Done’ and run the workflow. This will create a new EBS volume.


It is important to note that if you delete an EC2 instance, all the EBS volumes that were attached at the time of launching the instance will be deleted. However, the ones attached after the launch would not be deleted.

  • output-arrow aws-128 EC2 Terminate Instances
    • left-triangle TerminatingInstances array
      • left-triangle InstanceId string
      • left-triangle CurrentState object