Create AMI From An Existing EC2 Instance

Create AMI From An Existing EC2 Instance

Create AMI from an existing EC2 instance

Hello Everyone

Welcome to CloudAffaire and this is Debjeet

In the last blog post, we have discussed how to snapshot of EBS volume using Lifecycle Manager.

https://cloudaffaire.com/schedule-snapshot-of-ebs-volume-using-lifecycle-manager/

In this blog post, we are going to create AMI from an existing EC2 instance

Prerequisites for this demo:

  • One active AWS account.
  • One active EC2 instance.

Create AMI from an existing EC2 instance:

Step 1: Login to AWS console and click EC2 under compute

Create AMI from an existing EC2 instance

Step 2: Navigate to Volumes under ELASTIC BLOCK STORE. Select your instance root volume and from Actions click ‘Create Snapshot’

Create AMI from an existing EC2 instance

Note: We can add additional volumes to our AMI.

Warning: Additional charges apply to EBS volume and snapshot.

Step 3: Provide a description for the snapshot and click ‘Create Snapshot’

Create AMI from an existing EC2 instance

One success message will be displayed, click ‘Close’

Create AMI from an existing EC2 instance

Step 4: Navigate to Snapshots under ELASTIC BLOCK STORE. Select your instance root volume snapshot and from Actions click ‘Create Image’.

Create AMI from an existing EC2 instance

Warning: Additional charges apply for an image.

Step 5: Provide name and description and virtualization type for the image and click ‘Create’.

Create AMI from an existing EC2 instance

Note: Select Hardware-assisted-virtualization for Virtualization type for this demo.

One success message will be displayed. Click ‘Close’.

Create AMI from an existing EC2 instance

Step 6: To view our new AMI, navigate to AMIs under IMAGES.

Create AMI from an existing EC2 instance

Our AMI from existing EC2 Linux instance has been successfully created.

You can simply click ‘Launch’ to launch a new instance from this new AMI.

Hope you have enjoyed this blog post. In the next blog, we are going to discuss security groups.

 

Leave a Reply

Close Menu