- AWS User ID
- AWS Key ID
- AWS Secret Key
- x.509 Key pair (cert and private key)
Creating the bundle
- Upload your x.509 cert and private key to your running ec2 instance.
- Log into your ec2 instance
- Set up some environment variables to make the processes a little easier. Set arch to either i386 or x86_64 depending if you have a 64 bit or 23 bit instance. If your not sure which to choose you can check here
- Create bundle
- Upload bundle
- Register bundle
scp PATH_TO_KEYS/{cert,pk}-*.pem root@AWS_INSTANCE:/mnt
ssh -i YOURKEY.pem root@AWS_INSTANCE
# export AWS_USER_ID=YOUR_AWS_USER_ID
# export AWS_ACCESS_KEY_ID=YOUR_KEY_ID
# export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
# export arch=i386
ec2-bundle-vol -r $arch -d /mnt/ -p $prefix -u $AWS_USER_ID -k /mnt/pk-*.pem -c /mnt/cert-*.pem -s 10240 -e /mnt,/root/.ssh
ec2-upload-bundle -b $bucket -m /mnt/$prefix.manifest.xml -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY
ec2-register --name "$bucket/$prefix" $bucket/$prefix.manifest.xml
No comments:
Post a Comment