How do I get more CPU and memory for my EC2 Linux instance?
Last updated: 2019-07-29
I want to change or add something to my Amazon Elastic Compute Cloud (EC2) Linux instance:
- Number of CPU cores
- Amount of RAM
- Amazon Elastic Block Store (Amazon EBS) optimization
- Enhanced networking
- GPU cores
How do I change the specifications of my instance?
Resolution
Resize your EC2 instance to choose an instance type that meets your CPU, RAM, and feature requirements.
Be aware of the following before resizing your instance:
- You must stop your instance before you change instance types.
- Verify that your current instance type is compatible with the new instance type that you choose.
- If this instance has an instance store volume, any data on it is lost when the instance is stopped. Migrate your instance store-backed instance before you resize.
- If you're not using an Elastic IP address, the public IP address is released when you stop the instance.
- It's a best practice to maintain backups of your instances and data. Consider creating an AMI or creating snapshots of your EBS volumes before you change your infrastructure.
For instructions to resize your instance, see Changing the Instance Type.
Related Information
Did this article help you?
Anything we could improve?
Need more help?