Getting Started Guide
AWS Computing Basics for Linux
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Step 6: Create a Custom AMI

Now that we have customized our Amazon EC2 instance, we can save this Amazon Machine Image (AMI) and launch future environments with this saved configuration.

To create an AMI from a running Amazon EC2 instance

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. Make sure that US East (N. Virginia) is selected in the region selector of the navigation bar.

  3. In the navigation pane, click Instances.

  4. On the Instances page, right-click your running instance, and then click Create Image (EBS AMI).

  5. In the Create Image dialog box, fill in a unique image name and an optional description of the image (up to 255 characters), and then click Yes, Create.

    Amazon EC2 terminates the instance, takes images of any volumes that were attached, creates and registers the AMI, and then relaunches the instance.

  6. The Create Image dialog shows the AMI ID. Make a note of it; you will need it in a later task.

  7. To view the status of the new AMI, click AMIs in the navigation pane. While the new AMI is being created, its status is pending. It takes a few minutes for the whole process to finish.

  8. When the status of your AMI changes to available, go to the Snapshots page by clicking Snapshots in the navigation pane. View the new snapshot that was created for the AMI. Any instance that you launch from the new AMI uses this snapshot as its root device volume.

Eventually, you'll probably want to have multiple Amazon EC2 instances running across multiple Availability Zones. If one Availability Zone becomes unavailable, the traffic will be rerouted to another Availability Zone. An Elastic Load Balancer will enhance the availability of your application, whether all of your instances are in the same Availability Zone or in multiple Availability Zones. To create an Elastic Load Balancer, move on to Step 7: Create an Elastic Load Balancer.