Change instance type from M3 medium to T2 medium in Amazon EC2
$30-250 USD
Closed
Posted about 6 years ago
$30-250 USD
Paid on delivery
I have one extra reserved T2- Medium instance with me, and so I want to change instance type from M3 - Medium to T2 - Medium for one of my existing instance.
Amazon support team has given the following solution to it-
It involves the following steps:
[Please ensure that before start any of the process you have a snapshot of all your instances related to avoid any chances of data loss and note the private IP addresses.]
- Ensure you have grub installed on the source PV instance before starting! On Ubuntu – replace grub2 with grub 0.97 - NB***
- Launch a temporary Amazon Linux instance(PV or HVM) in the same region as the instance you would like to ‘convert’.
You might need to create an IAM role to perform this conversion that should have unrestricted access to both instances or use an existing IAM role that has access and provide credentials when prompted. To do this, first create an IAM role, select Amazon EC2 service role and then attach the AmazonEC2FullAccess policy.
- The script needs to be executed as the root user, so sudo to the root user on the temporary Amazon Linux instance and perform the steps:
- sudo su -
- wget [login to view URL]
chmod +x [login to view URL]
- ./[login to view URL] i-xxxxxxxx <instance Id of the source PV instance>
You will need to change some things on the new instance to make it work identically to the original instance.
Make sure you consider the following:
* that the security groups of the original instance are applied to the HVM instance
* that the elastic IP (EIP) on the original instance is moved to the HVM instance if applicable.
For your reference, the location of the script: [login to view URL]
After changing the instance type from PV to HVM, you can convert your instance's type to t2 series, for detailed information, please refer to my previous email.
I would like to convey to you that since we do not support conversion from PV to HVM, I would recommend you to first test this conversion in your test instances before implementing it on prod instances.
If the above does not work for you, There have been customers who have had success following the steps here. Though, I cannot guarantee that this will work for everyone :
[login to view URL]
I want someone who can either replicate these steps or come up with a better and less complex solution without any data loss from the existing instance.
Hi There
I'd rather suggest that you create a snapshot and mount the NEW volume in t2.medium.
or go with AWS VM Import/Export way.
Otherwise you can configure everything manually in the new EC2
I'm happy to work with any of these approach.
Looking forward
Joy
I am Ring. I am about 17+ years experienced in GNU/Linux based system, server installation and customization, develop, deploy, security and support. I may help you in this regard.
I would gladly help you convert the instance typ to t2 medium - ensuring you get the value for the reserved instance you've paid.
I have three years experience working with AWS including migrating from on-site to EC2 and from EC2 to ECS (involving moving from different instance types).
You will be pleased to know I am a AWS Certified Solution Architect with the pratical experience needed to make everything go smooth.
The requirements are clear and following the steps outlined by the Amazon support would be something I can help you with.