|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
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
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Make sure that US East (N. Virginia) is selected in the region selector of the navigation bar.
In the navigation pane, click Instances.
On the Instances page, right-click your running instance, and then click Create Image.
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 Create Image.
Amazon EC2 terminates the instance, takes images of any volumes that were attached, creates and registers the AMI, and then relaunches the instance.
The Create Image dialog shows the AMI ID. Make a note of it; you will need it in a later task.
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.
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.