Skip to main content

Command Palette

Search for a command to run...

Day 13.Create AMI from EC2 Instance

Published
•2 min read•View as Markdown
Day 13.Create AMI from EC2 Instance
T

Cloud & SRE specializing in AWS and DevOps. I share my ongoing learning journey through practical tutorials and insights. Let's grow together.

Lab Information

The Nautilus DevOps team is strategizing the migration of a portion of their infrastructure to the AWS cloud. Recognizing the scale of this undertaking, they have opted to approach the migration in incremental steps rather than as a single massive transition. To achieve this, they have segmented large tasks into smaller, more manageable units. This granular approach enables the team to execute the migration in gradual phases, ensuring smoother implementation and minimizing disruption to ongoing operations. By breaking down the migration into smaller tasks, the Nautilus DevOps team can systematically progress through each stage, allowing for better control, risk mitigation, and optimization of resources throughout the migration process.

For this task, create an AMI from an existing EC2 instance named devops-ec2 with the following requirement:

Name of the AMI should be devops-ec2-ami, make sure AMI is in available state.

Lab Solutions

Step-by-Step Instructions (AWS Console)

  1. Log in to AWS Console

Use your lab credentials and ensure the region is us-east-1.

  1. Navigate to the EC2 Instance

Go to EC2 service

Click Instances

Find and select the instance named devops-ec2

Ensure:

It is in running state (recommended)

Image description

  1. Create the AMI

With devops-ec2 selected:

Click Actions

Select Image and templates

Click Create image

A form will appear.

Fill in the required details:

Image name: devops-ec2-ami

Image description: (optional)

No reboot:

Default (reboot allowed) is safer and recommended.

Click Create image

AWS will now start generating the AMI.

Image description

Image description

  1. Verify AMI Creation

Go to Images → AMIs in the left EC2 menu.

Ensure Owned by me is selected.

Find AMI named devops-ec2-ami

Initially, the State will show:

pending

Wait until it becomes:

available

This may take a few minutes depending on instance size.

Image description


Resources & Next Steps

Credits
  • All labs are from: KodeKloud
  • Thanks for providing them.

More from this blog

W

Whispering Cloud Insights

88 posts

Documenting my path to cloud journey. Sharing lessons, tutorials, and insights from my continuous learning journey. Learn with me.