Blog

Blog

How to Launch an EC2 Instance From a Custom AMI

How to Launch an EC2 Instance From a Custom AMI

Introduction

EC2 (Elastic Compute Cloud) is a web service provided by Amazon Web Services (AWS) that allows users to rent virtual servers on the cloud. EC2 instances are virtual machines that can be launched in the cloud and used for various computing tasks, such as hosting web applications, running data processing jobs, and providing scalable infrastructure for businesses.

EC2 instances come in a variety of sizes, configurations, and pricing options. Users can choose from pre-configured instances or customize their own instances with different amounts of CPU, memory, storage, and networking capacity. Instances can be launched from pre-built Amazon Machine Images (AMIs), which are pre-configured images of an operating system and any necessary software, or users can create their own custom AMIs.

EC2 instances are highly scalable and can be easily scaled up or down as needed. Users can add or remove instances from their infrastructure to meet the changing demands of their application or workload. EC2 instances can also be integrated with other AWS services, such as Amazon Elastic Block Store (EBS) for storage, Amazon Simple Storage Service (S3) for object storage, and Amazon Virtual Private Cloud (VPC) for networking.

EC2 instances are billed on a pay-as-you-go basis, meaning users only pay for the computing resources they use. Pricing varies based on the instance size, configuration, and usage, as well as any additional services used. EC2 instances can be purchased as On-Demand Instances, Reserved Instances, or Spot Instances, depending on the user’s needs and budget.

This article focuses on the following pointers:

  • Launch an EC2 Instance From a Custom AMI
  • To launch a new EC2 instance from an Custom AMI, do the following

Launch an EC2 Instance From a Custom AMI

  1. Log in to your AWS Management Console and navigate to the EC2 dashboard.
  2. Click the “Launch Instance” button.
  3. In the “Choose an Amazon Machine Image (AMI)” section, select the “My AMIs” tab.
  4. Choose the custom AMI you want to launch the instance from and click the “Select” button.
  5. In the “Choose an Instance Type” section, select the instance size and configuration that best fits your needs.
  6. Click the “Next: Configure Instance Details” button.
  7. Configure the instance details, such as the number of instances, VPC settings, subnet, security group, and other networking options.
  8. Click the “Next: Add Storage” button.
  9. Configure the storage options for your instance, such as the size and type of storage volumes.
  10. Click the “Next: Add Tags” button.
  11. Add any relevant tags to your instance for easy identification and management.
  12. Click the “Next: Configure Security Group” button.
  13. Configure the security group settings for your instance, such as inbound and outbound rules for network traffic.
  14. Review your instance settings and click the “Launch” button.
  15. Select or create a key pair for secure access to your instance and click the “Launch Instances” button.

Your EC2 instance will now launch from your custom AMI. You can monitor its status and access it through the AWS Management Console or by connecting to it using SSH or RDP.

Youtube banner Logo

To launch a new EC2 instance from an Custom AMI, do the following:

  1. Open the EC2 console.
  2. Note: Be sure to select the AWS Region that you want to launch the instance in.
  3. From the navigation bar, choose AMIs.
  4. Find the AMI that you want to use to launch a new instance. To begin, open the menu next to the search bar, and then choose one of the following:
  5. If the AMI that you’re using is one that you created, select Owned by me.
  6. If the AMI that you’re using is a public AMI, select Public images.
  7. If the AMI that you’re using is a private image that someone else shared with you, select Private images.
  8. Note: The search bar automatically provides filtering options as well as automatically matching AMI IDs.
  9. Select the AMI, and then choose Launch.
  10. Choose an instance type, and then choose Next: Configure Instance Details. Optionally select configuration details, such as associating an IAM role with the instance.
  11. Select Next: Add Storage. You can use the default root volume type, or select a new type from the Volume Type drop down. Select Add New Volume if you want to add additional storage to your instance.
  12. Select Next: Add Tags. You can add custom tags to your instance to help you categorize your resources.
  13. Select Next: Configure Security Group. You can associate a security group with your instance to allow or block traffic to the instance.
  14. Select Review and Launch. Review the instance details.
  15. Select Previous to return to a previous screen to make changes. Select Launch when you are ready to launch the instance.
  16. Select an existing key pair or create a new key pair, select the acknowledge agreement box, and then choose Launch Instances.
  17. Choose View Instances to check the status of your instance.

Now custom AMI instance will be launched and will be available in a few minutes.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare

Subscribe to Newsletter

Stay ahead of the rapidly evolving world of technology with our news letters. Subscribe now!