Skip to main content

Command Palette

Search for a command to run...

Create EC2 Instances from Amazon Machine Images (AMIs): An Easy Guide

Simple Instructions for Setting Up EC2 Instances with AMIs

Updated
2 min read
Create EC2 Instances from Amazon Machine Images (AMIs): An Easy Guide
A
Associate Software Developer with experience building scalable, production-grade systems and backend services. Strong foundation in data structures, system design, and core computer science concepts, with a passion for learning new technologies and sharing practical engineering knowledge through writing.

An Amazon Machine Image (AMI) is an image provided by AWS that provides the information required to launch an instance. You'll need to specify an AMI when you launch an instance. You can launch multiple instances from a single AMI when you require multiple instances with the same configuration. You can use different AMIs to launch instances when you require instances with different configurations.

Steps to Create an AMI

  1. Create an EC2 instance and AMI. You can check out an AWS EC2 Instance with Windows or an AWS EC2 Instance with Linux and AMIs from EC2 Instances.

  2. Now select the instance and click on Actions.

    NOTE: Do not terminate the instance before the image is created; otherwise, the image will not be generated. Once the image status is available, you can terminate the instance.

  3. Select the image Click on Launch instance from AMI.

  4. Write a suitable name for the instance you are creating.

  5. Scroll down and select any key pair.

  6. Check Allow RDP traffic from, Allow HTTPS traffic from the Internet, and Allow HTTP traffic from the Internet under the Network Settings.

  7. Now click on Launch Instance.

  8. A new instance will appear in the instance tab.

  9. Wait until the instance state is Running and the status is 2/2 checks passed.

  10. Copy and paste the Public IPv4 address in a new browser window.

  11. The website hosted on the original instance should now be running on this new instance too.

  12. Now after verifying the result, the instance and AMI can be terminated.

AWS Training Chronicles: From Novice to Expert

Part 18 of 22

Follow my journey as I learn AWS from scratch, sharing insights, tips, and hands-on experiences along the way.

Up next

Create Amazon Machine Images (AMIs) from EC2 Instances: An Easy Guide

Step-by-Step Guide to Deploy Amazon Machine Images on EC2