[ec2-beta] Automated bundling?
Jeff Koftinoff
jeffk at jdkoftinoff.com
Fri Jan 30 20:54:06 GMT 2009
I just went through this yesterday. I haven't looked into the
vmbuilder solution, but I was able to successfully take an ubuntu
image running on ec2, boot from it, install the ec2 scripts, and run a
script like this "snapshot-ec2.sh" script:
#! /bin/bash
PREFIX="$1"
DOMAIN="$2"
SIZE="$3"
ec2-bundle-vol -k $EC2_KEY -c $EC2_CERT -u $AWS_ACCOUNT -s $SIZE -p
"$PREFIX" -e /tmp
ec2-upload-bundle -b $PREFIX.$DOMAIN -m /tmp/$PREFIX.manifest.xml -d /
tmp -a $ACCESS_KEY -s $SECRET_KEY
ec2-register-image $PREFIX.$DOMAIN/$PREFIX.manifest.xml
The I set the environment variables EC2_KEY EC2_CERT AWS_ACCOUNT
ACCESS_KEY SECRET_KEY
and run
./snapshot-ec2.sh myubuntu jdkoftinoff.com 8192
and it uploaded and registered an ami image. With the aws web command
console I was able to see the new image and start it up.
jeff koftinoff
www.jdkoftinoff.com
On 2009-Jan-30, at 12:47 PM, James Wyatt wrote:
> Hello,
>
> Just a suggestion for dev efforts. The biggest barrier for a lot of
> ec2 users is bundling their own AMIs. Automating this would greatly
> reduce the technical expertise required to effectively use ec2.
>
> Jim Wyatt
>
>
> --
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ec2-beta
More information about the Ec2-beta
mailing list