Create AMI from an existing EC2 instance
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed how to 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
Step 2: Navigate to Volumes under ELASTIC BLOCK STORE. Select your instance root volume and from Actions click ‘Create Snapshot’
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’
One success message will be displayed, click ‘Close’
Step 4: Navigate to Snapshots under ELASTIC BLOCK STORE. Select your instance root volume snapshot and from Actions click ‘Create Image’.
Warning: Additional charges apply for an image.
Step 5: Provide name and description and virtualization type for the image and click ‘Create’.
Note: Select Hardware-assisted-virtualization for Virtualization type for this demo.
One success message will be displayed. Click ‘Close’.
Step 6: To view our new AMI, navigate to AMIs under IMAGES.
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.