ec2-bundle-image

ec2-bundle-image -k PRIVATE-KEY -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:

Note that this tool does not support the common options
OptionDefinitionRequired?Example
-k, --privatekey KEY The path to the user's PEM encoded RSA key file. Yes-k $HOME/pk-234242DEADCAFE.pem
-u, --user USER The user's EC2 user ID (a.k.a. AWS account number). 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 ./my-very-secret-key/pk-very-very-secret-key.pem -u DEAD0CAFE1AND3BEEF -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.