- Newest
- Most votes
- Most comments
A couple of options to try. Snapshot and restore the instance as a new version of ec2.
Create a new ec2 and attach the volume to the new ec2 and copy the data off.
These are the 2 approaches I’d look at.
Thank you Gary for your response! However, I couldn't get them to work :(
-
I don't see a snapshot option on my stopped instance.
-
I don't see any volume entry under "Elastic Block Store > Volumes" or in the instance's "Block devices" field
I need to preface my answer by saying I've never done any of this myself, but this knowledge document appears to cover much of the ground that your question is asking https://repost.aws/knowledge-center/ssm-migrate-ec2classic-vpc
If that doesn't work for you, what about creating an AMI from the stopped EC2 Classic instance, and then from this provisioning a new EC2 in a VPC?
Or spin up a fresh EC2 with a plain new AMI and mount the volumes from the EC2 Classic instance onto it. This may not be possible right away if the volumes on the EC2 Classic are outside of the VPC that the new instance will be in, so in that case try snapshotting the EC2 Classic's volumes, and then creating new volumes from those snapshots https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html#ebs-create-volume-from-snapshot
Thanks Steve for your response!
The first link leads to the AWSSupport-MigrateEC2ClassicToVPC solution which as I mentioned doesn't work in my case.
As for your second solution, I can't mount the volumes from the EC2 Classic instance onto a new instance because I don't see any volume entry under "Elastic Block Store > Volumes" or in the instance's "Block devices" field
I tired the create image option but got the error:
Instance does not have a volume attached at root (/dev/sda1)
Thanks for the options, will try some more
Relevant content
- asked 2 years ago
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
Thank you Gary for your response! However, I couldn't get them to work :(
I don't see a snapshot option on my stopped instance.
I don't see any volume entry under "Elastic Block Store > Volumes" or in the instance's "Block devices" field