Wei walks you through
resizing your EC2 instance


I want to change the number of CPU cores or amount of RAM on my Amazon EC2 instance, or I want to use a feature not available for my current instance type such as EBS optimization, enhanced networking, or GPU cores. How do I change the specifications of my instances?

Each EC2 instance type comes with standardized CPUs, amounts of RAM, and feature sets. If you require a different hardware configuration than what you currently have, you can change an EC2 instance’s type (also known as resizing your instance).

Before resizing your instance, keep these things in mind:

  • The instance will need to be stopped and started again.
  • The IP addresses of the instance might change, at least temporarily. If your instance is running in the EC2-VPC environment, the public IP address will change, unless you have an attached Elastic IP address. If you’re running in the EC2-Classic environment, both the public and private IP addresses will change.
  • Any data stored in instance store drives will be lost. For more information, see Amazon EC2 Instance Store. If you’re primarily using instance store volumes, follow the instructions at Migrating an Instance Store-backed Instance before attempting to resize your instance.
  • Maintain backups of your instances and data as a best practice. Consider creating an AMI or creating snapshots of your EBS volumes before making any changes to your infrastructure.

When you’re prepared, see Resizing Your Instance.

Note: If your EC2 instance doesn’t pass health checks after a change of instance type, revert to the original instance type, review Resizing Your Instance for any steps you may have missed, and then attempt to resize the instance again.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2016-08-17