Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction to Amazon Machine Images
2.
How to create Amazon Machine Images Instance
3.
Types of Amazon Machine Images
4.
Frequently Asked Questions
4.1.
What is AWS?
4.2.
What is virtual computing? 
4.3.
What are the disadvantages of cloud computing?
5.
Conclusion
Last Updated: Mar 27, 2024
Easy

Amazon Machine Images

Author Urwashi Priya
1 upvote
Master Python: Predicting weather forecasts
Speaker
Ashwin Goyal
Product Manager @

Introduction to Amazon Machine Images

Amazon Machine Images contains information that is needed in order to launch any EC2 instances, in fact, all EC2 instances are actually packed by AMIs. in other words, we can also say that AMI act as a supporting pillar of all the EC2 instances.

Whenever any instances are to be launched, the foremost thing done is to determine from which AMI we need to launch it from.

To understand this concept in clearer words, let us explain it with an example.

10 years ago, when we used to go to a shop to buy a laptop, the questions shopkeepers ask were “which operating system would you require”, “the size of RAM”, and “ what type of application would you run on the system” and many more. Today, all these questions are engraved or are composed in Amazon Machine Images. It is basically a softcopy of the operating system. 

There are 38 different AMIs provided by AWS itself and we can purchase them from the AWS marketplace.

This is just a kind of feature that provides information which is required to launch an instance, i.e virtual computing environment in the cloud. We can launch as many instances as we need.

Source: aws

Let’s get deeper into the AMIs.

How to create Amazon Machine Images Instance

To create AMIs follow the below-mentioned steps:

Step 1: Create an AWS account for yourself.

Step 2: Click on Services present at the top. Then search for compute and click on EC2. 

Source: cloudaffaire

Step 3: After clicking on EC2, click on “launch instance” as shown in the below diagram.

Source: javatpoint

Step 4: Now we need to choose an instance type, here we can filter instances based on general-purpose, computer optimised, GPU instances, memory optimised or storage optimised.

Step 5: Then we need to configure the instance. We can change the network and subnet. We need to enable auto-assign public IP. We can let the remaining options be set to default themselves. Then click on next.

Source: cloudfront

Step 6: Then we need to add storage. We can alter the size( the limit is put to 2048 GB by default), and volume type. The volume type is set to root and the directory path is given as “/dev/sda1” in the case of the window. Root volume by default is not encrypted but we can manually encrypt it.

Source: sundivenetworks

Step 7: Next, we need to add tags. Tags can never be copied. Then click on next and configure the security group.

Source: hpc

Source: sundivenetworks

Step 8: Then, click on review and launch. Direct to launch. Create a new key pair and name it suitably. then click on launch instance. Go to view instances.

Source: cdn

Step 9: Now we need to connect your instance. Once your instance gets loaded, click on connect, download the remote desktop file(RDP) then click on get password. This password will be visible in the download section of your computer and the file name would be the name of the file you gave in step 8. The file should be of extension .pem. Open and decrypt the file to get your password. Write the password on your notepad and save it. This is done because we can’t decrypt our files more than once.

Source: sundive

Step 10: Open the downloaded RDP file. Click on connect. Write a password and our server opens.

Till now, I assume you must have got a basic idea about Amazon Machine Images.

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp

Types of Amazon Machine Images

Amazon is having mainly two types of AMIs:

  1. EBS backed Instances
  2. Instance Store backed instances
     

Source: blog2opstree  

The root device is stored as an Amazon EBS volume in EBS backed instances. Amazon EBS volume gets automatically created from the associated AMI snapshot. In EBS backed instances you will get billed for all data external to the application including operating system files

Instance-based backed instances come at some price and give direct control towards persistent files. It is slower than EBS backed instances. Once these types of files are terminated, the local storage gets cleared but the data still persists in EBS volume. 

Must read, Amazon Hirepro

Frequently Asked Questions

What is AWS?

Amazon web services are online platforms providing scalability and cost-effective cloud computing solutions. It helps by providing varied on-demand operations including content delivery, storage, power, etc. 

What is virtual computing? 

Virtual computing involves bringing together or the combination of logical resources as well as physical resources which include processes, memory, and network storage into a single and manageable virtual environment. it involves a lot of sharing of a single physical instance of resource or an application to multiple and varied users. Examples include email, chatting, etc. 

What are the disadvantages of cloud computing?

Reboot, Network outages and downtime are some of the drawbacks of cloud computing. It can be damaging to the growing business and can stop the business continuity. Cloud reliability should also be taken into account

Conclusion

This article taught us about Amazon Machine Images. We discussed about what AMI mean, how to create it using EC2 instance and also the different types of AMIs.

We hope you could easily take away all critical and conceptual techniques by walking over the given examples and if you would like to learn more, check out our articles on Coding Ninjas Blogs

To strengthen your placement preparation, you can refer to our Interview ExperiencesProblems, and Guided Paths.

It's not the end. Learn and explore more.

Previous article
Solution Constructs in AWS
Next article
Amazon Analytics
Live masterclass