Saturday, September 22, 2018

How to convert EC2 T2 instance to T3

1. Create snapshot of your ec2 instance volume (storage)
2. Install AWS CLI if not installed
3. Configure AWS CLI - set region, Access Key
4. run this command, replacing name, description and snapshot ID:

aws ec2 register-image --architecture "x86_64" --description "descr" --ena-support --name "name" --root-device-name "/dev/sda1" --block-device-mappings "[{\"DeviceName\": \"/dev/sda1\",\"Ebs\": {\"SnapshotId\": \"snap-123\"}}]" --virtualization-type "hvm"

5. Launch new instance from new AMI

No comments:

Post a Comment