Register an Amazon Machine Image (AMI).
Table of Contents
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.
The first step is to upload your key and certificate to the running instance on /mnt.
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.
# 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.
# ec2-register -C /mnt/cert-XXX -K /mnt/pk-XXX -U " https://ec2.amazonaws.com" rightscale_ami/demo.rightscale.manifest.xml IMAGE ami-77f81c1e
© 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.