Home > Guides > Dashboard Users Guide > Clouds > AWS Global > Image Locator > Actions > Register an AMI

Register an AMI

Objective

Register an Amazon Machine Image (AMI).

Table of Contents

Overview

Images must be registered before they can be launched in EC2.  Note that Servers launched directly from images cannot be added to Deployments in your Dashboard.  See the Help Text in the RightScale Dashboard  for a more comprehensive discussion about image types.

Steps

Upload your AWS key and certificate

The first step is to upload your key and certificate to the running instance on /mnt.

 

Bundle the Instance

SSH into the instance and perform the following commands.  Replace "rightscale_ami" with your own information.

# ec2-bundle-vol -d /mnt -k /mnt/pk-XXX.pem -c /mnt/cert-YYY.pem -u 123456789012 -r i386 -p 
rightscale_ami Copying / into the image file /mnt/rightscale_ami...
[...]
Created demo.rightscale.part.89
Generating digests for each part...
Digests generated.
Creating bundle manifest...
ec2-bundle-vol complete. 

 

 

Upload AMI to an S3 Bucket

# ec2-upload-bundle -b rightscale_ami -m /mnt/rightscale_ami.manifest.xml -a MYACCESSKEY -s MYSECRETKEY
Uploading bundled image parts to https://s3.amazonaws.com:443/rightscale_ami ...
Uploaded demo.rightscale.part.00 to https://s3.amazonaws.com:443/rightscale_ami/demo.rightscale.part.00.
[...]
Uploading manifest ...
Uploaded manifest to https://s3.amazonaws.com:443/rightscale_ami/demo.rightscale.manifest.xml.
Bundle upload completed. 

 

 

Register the AMI

# ec2-register -C /mnt/cert-XXX -K /mnt/pk-XXX -U " https://ec2.amazonaws.com" rightscale_ami/demo.rightscale.manifest.xml
IMAGE   ami-77f81c1e 
You must to post a comment.
Last Modified
22:09, 16 May 2013

Page Rating

Was this article helpful?

Tags


Announcements

UCP Migration

Glossary | 用語용어 Site Map | Site Help Community Corporate Site Get Support Dashboard Login
Doc Feedback Product Feedback Resources MultiCloud Marketplace Forums

Dashboard Status


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.