- Confirm that Ec2SetComputerName is disabled
- Stop the instance
- Launch a new instance in the same zone
- Stop the new instance
- Attach the volumes from the old instance to the new one
- Start the new instance
- Terminate the old instance
- Delete the volume that came with the new instance
- Reassociate the Elastic IP address
Wow, that was rather cumbersome, but that is the only way to do this via the EC2 console. Looking at the API, I found the following Powershell command that replaces steps 3 to 8:
ec2-modify-instance-attribute <instance-id> --instance-type <new-instance-type>
That's it! I can't believe I did it the hard way that many times.
No comments:
Post a Comment