Inorder to create an image from vm.Select the ec2 instance.From Actions > Image > Create image
Here give image name, image discription and othe details.We will untick on no reboot.It means that vm wii stop then create image and then start again.We need to select "No reboot" if we don't want our instance to be shut down. If "No reboot" is selected, we can't guarantee the file system integrity of the created image.Then we can specify root volume size.We can change the default value so that newly created instance from the image will have that size.Similarly we can also add a new volume in this step so that newly created instance from that image will have that attached volume.Then click create Image.
We can see new AMI image and a snapshot for it is created.
Here give image name, image discription and othe details.We will untick on no reboot.It means that vm wii stop then create image and then start again.We need to select "No reboot" if we don't want our instance to be shut down. If "No reboot" is selected, we can't guarantee the file system integrity of the created image.Then we can specify root volume size.We can change the default value so that newly created instance from the image will have that size.Similarly we can also add a new volume in this step so that newly created instance from that image will have that attached volume.Then click create Image.