Creating an AMI
- Sign in to the AWS Management Console.
- Move to the EC2 service.
- We have one running instance whose name is WebServer.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami.png)
- Now, I want to create a consistent snapshot. In order to achieve this, stop the instance. Click on the Actions dropdown menu.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami2.png)
- Move to the Volumes appearing on the left side of the console. Click on the Actions dropdown menu to create a snapshot.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami3.png)
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami4.png)
- To view the snapshot, click on the Snapshots appearing on the left side of the console.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami5.png)
- We can also copy the snapshot to another region. Click on the Actions dropdown menu, and then click on the copy.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami6.png)
From the above screen, we observe that we can also encrypt the snapshot, so check the encryption box to enable the encryption.
- Move to the US east (N.Virginia) region where we have copied the snapshot.
- Now, we will create an image. Click on the Actions dropdown menu, and then click on the create image.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami7.png)
- Enter the name of the image and its description.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami8.png)
- Click on the AMI appearing on the left side of the console.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami9.png)
- Click on the Launch button.
- Choose an instance type and click on the Next.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami10.png)
- Configure Instance details. Keep all the instance details as default, and then Click on the Next button.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami11.png)
- (Optional) You can add new EBS Volume.
- Add tags. Click on the Next.
![Creating an AMI](/tutorial/tutorial/aws/images/aws-creating-an-ami12.png)
- Configure Security Group. Click on the Review and Launch button.
- Click on the Launch button.
Important points to remember:
![](/images/ArticleImages/site_image_4068.jpg)
![](/images/ArticleImages/site_image_3868.jpg)
- To create a snapshot for Amazon EBS Volumes that serve as root devices, you should stop the instance before taking the snapshot.
- Snapshots of encrypted volumes are encrypted automatically.
- Volumes restored from the encrypted snapshots are encrypted automatically.
- You can share snapshots, but only if they are unencrypted.
- These snapshots can be shared with other AWS accounts or made public.
|