AWS AMIs
AWS AMIs
Hello everyone, in this video we will be covering AWS AMIs or Amazon Machine Images. We will see
what these AMIs are, create some of them, and launch instances from them.
What is an AMI?
An AMI is a supported and maintained image from AWS that is used to launch EC2 instances. You
can launch multiple instances from a single AMI. These AMIs can be created from your running or
stopped instances.
Types of AMIs
2. Marketplace AMIs: These are created by some third party and approved by AWS.
3. Community AMIs: These are again created by third party but not approved by AWS.
4. Custom AMIs: These are the AMIs which we create for our use.
An AMI includes:
One or more EBS volume snapshots or in case of instance store-backed AMIs, a template for
the root volume.
Launch permissions that specify which account can launch or use your AMIs.
Blocked device mapping that specifies the volume attached to the instance.
Creating an AMI
EBS-backed AMIs
If your instance is EBS-backed, you can create an AMI by following these steps:
2. Customize the instance as per your requirement (install software, keep files, etc.).
If your instance has an instance volume attached, you can create an AMI by following these steps:
That's all for the theoretical part. Now, let's move on to the AWS console and create an EBS-backed
AMI.
<details> <summary>Demo</summary>
Once the AMI is created, you can see it in the AMIs section.
1. Launch an instance from an AMI that's similar to the AMI you want to create.
2. Customize the instance as needed (e.g. install software, attach additional EBS volumes,
create new user accounts, etc.).
2. Customize the instance as needed (e.g. install software, attach additional EBS volumes, etc.).