Terminating your EC2 instance

Instructions

Q&A (0)

Notes (0)

Resources (0)

Saving Progress...

Resources

There are no resources for this lesson.

Notes can be saved and accessed anywhere in the course. They also double as bookmarks so you can quickly review important lesson material.

Create note

By now, you should have a good understanding of what Amazon Elastic Compute Cloud (EC2) is and how to use it to launch virtual servers in the AWS cloud. But what happens when you no longer need an EC2 instance?

We terminate it! Terminating an EC2 instance simply means "deleting" the EC2 instance and releasing all of its resources. This can be useful if you want to stop paying for an instance that you're no longer using or if you want to replace an instance with a newer one.

So, let's go over the steps for terminating an EC2 instance:

1. First, log in to the AWS Management Console and navigate to the EC2 dashboard.

2. On the left-hand side, click on "Instances" to view a list of your EC2 instances.

3. Select the checkbox next to the instance that you want to terminate. You can select multiple instances if you want to terminate them all at the same time.

image 45
Select EC2 Instance Checkbox

4. Click on the "Actions" button, then select Instance State, and then Terminate from the drop-down menu:

image 44
AWS EC2 Instance State > Terminate Instance

5. A pop-up window will appear, asking you to confirm that you want to terminate the instance. Click Terminate to confirm.

image 43
Terminate EC2 Instance

6. The EC2 instance(s) will then be shut down and terminated. It will continue to show in your EC2 instance list for a short period of time with the Instance state of Terminated.

It's important to note that when you terminate an EC2 instance, any data stored on its local storage (such as the root device volume) will be lost. If you want to preserve this data, you should create a snapshot of the root device volume before terminating the instance.

IMPORTANT

And that's it! Terminating an EC2 instance is a simple process that can save you money and resources when you no longer need an instance. See you in the next lesson!

Server Academy Members Only

Want to access this lesson? Just sign up for a free Server Academy account and you'll be on your way. Already have an account? Click the Sign Up Free button to get started..

0 0 votes
Lesson Rating
Subscribe
Notify of
profile avatar
0 Comments
Inline Feedbacks
View all comments