Skip to content

How do I delete or terminate my Amazon EC2 resources?

3 minute read
0

I want to find and delete all Amazon Elastic Compute Cloud (Amazon EC2) resources.

Resolution

Identify active resources in your account

Note: Amazon Lightsail instances are separate from Amazon EC2 instances and are billed separately.

Check your monthly bill to find the active resources in your AWS account and the AWS Regions where they're provisioned.

To list active resources that AWS Systems Manager manages, run the AWSSupport-ListEC2Resources runbook. The runbook provides information about Amazon EC2 instances and related resources from the Regions that you specify.

The following Amazon EC2 resources don't generate charges when you use or provision them so don't appear in the AWS Billing console:

  • Virtual private clouds (VPCs)
  • Security groups
  • Key pairs
  • Elastic network interfaces
  • Amazon EC2 Auto Scaling groups

Delete or terminate the Amazon EC2 resources

Important: You can't recover deleted, terminated, or released resources.

To delete or terminate your Amazon EC2 resources, take the following actions:

To confirm that your Amazon EC2 resources no longer generate charges, check the AWS Cost and Usage Report or AWS Cost Explorer.

Remove Reserved Instances

You can't cancel an existing Reserved Instance. Reserved Instances adhere to a flat monthly fee that's defined when you activate the Reserved Instance. If you have a US bank account, then you can sell the Reserved Instance on the Amazon EC2 Reserved Instance Marketplace

Related information

Why was I charged for Amazon EC2 after I terminated all my instances?

Why can't I find an Amazon EC2 instance that I launched on my account?

What do I do if I receive a bill from AWS but can't find the resources that are related to the charges?

How do I avoid future charges when I use the AWS Free Tier?