Skip to content

Change EC2 instance type

0

Hello!

I would like help with changing the instance type on an EC2, I have an email server that is underused (t3.xlarge) I would like to change it to t2.medium, is it possible to make this change without losing data or server settings, that is, just resizing the instance type. I saw the article below, however, I still had doubts about carrying out the procedure.

https://docs.aws.amazon.com/pt_br/AWSEC2/latest/UserGuide/ec2-instance-resize.html

asked 2 years ago5K views

4 Answers
2

Depending on region, you'll get around 19% cheaper price by choosing t3a.medium instead of t2.medium, and about 10% cheaper price with t3a.medium over t3.medium. The "a" at the end of the instance family indicates that the processor is from AMD instead of Intel, and while being functionally just the same for general workloads, they are less costly.

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

1
Accepted Answer

Yes, it is possible to change the instance type of your EC2 instance from t3.xlarge to t2.medium without losing data or server settings, provided that your instance is EBS-backed and the current configuration is compatible with the new instance type. Here's how you can do it:

  1. First, ensure that you have backed up your data as a precautionary measure.

  2. Stop your EC2 instance. This is necessary because you can't change the instance type while it's running.

  3. Once the instance is stopped, select it in the EC2 console.

  4. Go to "Actions" > "Instance Settings" > "Change Instance Type".

  5. In the "Change Instance Type" dialog, select "t2.medium" as the new instance type.

  6. Click "Apply" to confirm the change.

  7. Start your instance again.

After the instance starts, it will be running as a t2.medium with all your data and settings intact.

However, there are a few important points to consider:

  • Ensure that the t2.medium instance type is compatible with your current configuration, especially regarding virtualization type, network adapters, and EBS volume limits.

  • Be aware that changing from a t3 to a t2 instance means you're moving to an older generation. T3 instances generally offer better performance and newer features.

  • The IP address of your instance might change unless you're using an Elastic IP address.

  • If you're running a Windows instance, you may need to run additional scripts after changing the instance type to ensure proper configuration.

If you encounter any compatibility issues or if your instance is instance store-backed rather than EBS-backed, you may need to launch a new instance and migrate your data and settings manually.
Sources
Amazon EC2 instance type changes - Amazon Elastic Compute Cloud
Change the instance type for your Amazon EC2 instance - Amazon Elastic Compute Cloud
Compatibility for changing the instance type - Amazon Elastic Compute Cloud

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

0

Thank you everyone, following the recommendations, I successfully changed the instance to t3.medium.

answered 2 years ago

  • As I mentioned above, you'd get about 10% better price by choosing t3a.medium instead of the t3.medium instance type that you selected.

0

I wouldn’t go to t2 from t3 personally. I would shoot for a t3 medium.

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.