ec2-bundle-image
ec2-bundle-image
-k PRIVATE-KEY -c EC2-CERT -u USER-ID -i IMAGE
[-d DESTINATION-DIR] [-p AMI-PREFIX]
Create a bundled AMI of an operating system image that was created in a loopback file.
Status messages indicating the various stages of the bundling process are displayed.
Note | |
---|---|
This tool does not support the common options |
Option | Definition | Required? | Example |
---|---|---|---|
-k, --privatekey KEY
|
The path to the user's PEM encoded RSA key file. | Yes | -k pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem |
-c, --cert EC2-CERT
|
The user's PEM encoded RSA public key certificate file.. | Yes | -c cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem |
-u, --user USER
|
The user's EC2 user ID (i.e., AWS account number, not the Access Key ID). | Yes | -u 123456789 |
-i, --image PATH
|
The path to the image to bundle. | Yes | -i /var/spool/my-image/version-2/debian.img |
-d, --destination
DESTINATION
|
The directory in which to create the bundle. Defaults to the current directory. | No | -d /var/run/my-bundle |
-p, --prefix PREFIX
|
The filename prefix for bundled AMI files. Defaults to "image". | No | -p my-image-is-special |
--help
|
Display the help message. | No | --help |
--manual
|
Display the help. | No | --manual |
$
ec2-bundle-image -k pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem -c cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem -u 495219933132 -i image.img -d bundled/ -p fred
Splitting bundled/fred.gz.crypt... Created fred.part.00 Created fred.part.01 Created fred.part.02 Created fred.part.03 Created fred.part.04 Created fred.part.05 Created fred.part.06 Created fred.part.07 Created fred.part.08 Created fred.part.09 Created fred.part.10 Created fred.part.11 Created fred.part.12 Created fred.part.13 Created fred.part.14 Generating digests for each part... Digests generated. Creating bundle manifest... Bundle Image complete.