Skip to main content

Command Palette

Search for a command to run...

Day 7 : Change EC2 Instance Type

100 Days of Cloud (AWS)

Updated
2 min read
Day 7 : Change EC2 Instance Type

Hello, welcome to Day 7. In this lab, you will learn how to change the EC2 instance type in AWS. After you finish this lab, you will feel confident changing the EC2 instance type in AWS without worry. In this lab you need to change instance type from t2.micro to t2.nano.

Why we need to change EC2 instance type?

That's a good question. You are working in the UAT zone and don't know exactly how much CPU, memory, disk input/output, and network performance the EC2 instance is using for these applications. First, you will choose a larger EC2 instance type for load testing and monitor the resource usage. After monitoring this EC2 instance, you will know how much resources are consumed. If resource usage is higher than the current instance type can handle, you will need to switch to a larger instance type. If resource usage is not high, you can choose a smaller instance type. There's no need to use a larger instance type. It will help you save on cloud costs and right sizing. That's why we need to change the EC2 instance type based on our use cases.

The first step in changing the instance type is to stop the instance. If your EC2 instance is running, you can't change the instance type. That's why we stop the instance first.

After stopping the instance, you can change the instance type.

In this section, you can see how much cost you save by switching from t2.micro to t2.nano.

Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 8. If you have any issues please let me know I will be happy to assist you. Stay tuned and learn together. If you find my article useful, please kindly like and share it.

100 Days of Cloud (AWS)

Part 44 of 50

In this series you will learn how to configure and manage cloud resources using AWS. My intention is to provide an explanation and share the answers for 100 Days of Cloud (AWS) from KodeKloud.

Up next

Day 6 : Launch EC2 Instance

100 Days of Cloud (AWS)