How to Create New AMI from Snapshot and Launch New EC2 in AWS

Creating a new Amazon Machine Image (AMI) from a snapshot and launching a new EC2 instance from that AMI involves a few steps. Here’s a guide on how to do it | How to Create New AMI from Snapshot and Launch New EC2 in AWS.

1. Create an AMI from a Snapshot:

1.1. Sign in to AWS Console:

Go to the AWS Management Console:

Sign in with your AWS account.

log in to aws using root user 1

1.2. Open EC2 Dashboard:

Navigate to the EC2 Dashboard.

search ec2 1 1

How to Create New AMI from Snapshot and Launch New EC2 in AWS

1.3. Select Snapshots:

  • In the EC2 Dashboard, under “Elastic Block Store”, click on “Snapshots”.
step 3 1

1.4. Choose Snapshot:

Choose the snapshot from which you want to create the AMI.

step 4 1

1.5. Create Image (AMI):

From the “Actions” dropdown menu, select “Create Image”.

Provide a name and description for the new AMI.

Click “Create Image”.

step 6 2

1.6. Wait for AMI Creation:

  • The process of creating the AMI may take some time. Once the process is complete, the new AMI will be available in your account.

2. Launch a New EC2 Instance from the AMI:

2.1. Open EC2 Dashboard:

  • Navigate back to the EC2 Dashboard.

2.2. Launch Instance:

Click on “Launch Instance”.

laumch instance 2

2.3. Choose an AMI:

In the “Choose an Amazon Machine Image (AMI)” step of the wizard, select the “My AMIs” tab.

Choose the AMI you created from the snapshot in the previous steps.

step 9 1

2.4. Choose Instance Type:

  • Select an instance type based on your requirements.
  • Click “Next” until you reach the “Configure Security Group” step.
step 10 1

2.5. Configure Security Group:

Configure the security group settings to allow the necessary inbound and outbound traffic for your instance.

Click “Review and Launch”.

step 11 1

2.6. Review and Launch:

  • Review your instance configuration and click “Launch”.

2.7. Select or Create Key Pair:

Choose an existing key pair or create a new one.

This key pair will be used for SSH access to the new EC2 instance.

step 12

2.8. Launch Instance:

Click “Launch Instances”.

step 13 1

2.9. View Instances:

Once the instance is launched, you can view it in the EC2 Dashboard under “Instances”.

step 14 2

3. Access the New EC2 Instance:

3.1. SSH into the New Instance:

  • Use the private key associated with the key pair you selected or created earlier to SSH into the new EC2 instance.

Congratulations! You’ve created a new Amazon Machine Image (AMI) from a snapshot and launched a new EC2 instance using that AMI. You can now use the new instance for your desired purposes. Remember to manage your instances and resources according to your requirements and best practices.

Conclusion:

In this article we have covered How to Create New AMI from Snapshot and Launch New EC2 in AWS.

Related Articles:

Create EC2 Instance in AWS and SSH Using MobaXterm

About Monica Mahire

Working as DevOps Intern, Likes to explore new tools and share knowledge.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link