Lets understand what is AMI:
An Amazon Machine Image (AMI) is an image or blueprint that is required to launch an EC2 instance. When we launch an EC2 instance it is required to use AMI. With the help of single AMI we can launch multiple instances.
Imagine I am a Baker and I want to bake a special cake for my daughter's birthday. I will do the following steps in order to make a chocolate cake.
- First I will create a detailed recipe for chocolate cake, the ingredients I need, process I will follow to bake a perfect bake. This step is similar to creating an EC2 instance with desired vCpu's, storage, networking settings etc.
- Second step would be bake a chocolate cake with the help of perfect recipe, this step would be similar to launch an initial EC2 instance.
- Following the first two steps correctly will result in baking a perfect cake, it mean that EC2 instance is launched and is running perfectly.
- Now if anyone wants to get the exact same cake I will take a picture on my phone and write the detailed recipe or steps of making the same cake. It is same as creating AMI from the instance.
- If I need the same cake , I don't have to search for perfect recipe for the cake, I can re-create the cake quickly. This represents the Instance creation with the help of AMI.
I have created a detailed GitHub repo for AWS AMI Creation.Have a look!!https://github.com/Asma09Akram/AWS-AMI-CreationKeep learning !!