I have an EC2 instance whose root device is 'instance-store'. While trying to create AMI for same, i could not see any option in instances tab or under volumes tab. I want to stop this instance & preserve AMI for future use to launch instance from same AMI.
migrated from stackoverflow.com Nov 8 '12 at 15:47
This question came from our site for professional and enthusiast programmers.
The AWS console only provides access to functions that can work without access to your instance's file system. Instance-store AMIs actually have the files bundled, compressed, and encrypted - and therefore need file system access. To create such an AMI, you need to use the command line, from within an instance. (Note the difference between this and an EBS backed instance - with the latter, a snapshot can be generated of the block device, irrespective of the contents of that device.
The process of creating an instance-store AMI is well documented by AWS. Essentially:
Depending on your specific scenario, you may also be able to copy the contents of your instance-store volume to an EBS volume and convert your instance to an EBS backed instance (which would be a better approach). See this question for some additional points.