JamesBranam's Blog

Saturday Jun 06, 2009

AWS Experience Part 9: Uploading and Registering an OpenSolaris Bundle

Hi all,

Success! My bundle was created. Now it's time to upload it to S3 and to register it with AWS for use. Here's how:

  1. First, see yesterday's blog entry about setting the environment variables. This saves a lot of time.
  2. I changed to the directory hosting the part of my bundled AMI: cd $DIRECTORY/parts.
  3. From there, I uploaded the bundle to my S3 bucket, which is created for me as I do it: ec2-upload-bundle -b $BUCKET -m $IMAGE.manifest.xml --url http://s3.amazonaws.com --retry -a $EC2_KEYID -s $EC2_KEY. It took a few minutes, but you can follow the progress as it uploads each bundle part.
  4. To register the AMI, I typed the following command: ec2reg -C $EC2_CERT -K $EC2_PRIVATE_KEY $BUCKET/$IMAGE.manifest.xml.
    The next thing you see in the command line is the AMI ID, for example: IMAGE ami-1a2b3c4de. Then you know that the AMI has been registered. Go to the AWS Management Console > AMIs and do a search to see for youself.
I write some more about AWS tomorrow.

Cheers!

--James

Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers