ec2-unbundle
ec2-unbundle
-m MANIFEST-PATH
-k PRIVATEKEY
[-d DESTINATION-DIRECTORY]
[-s SOURCE-DIRECTORY]
Recreates the AMI from the bundled AMI parts.
Status messages indicating the various stages of the unbundling process are displayed.
Note | |
---|---|
Note that this tool does not support the common arguments |
Option | Definition | Required? | Example | |||
---|---|---|---|---|---|---|
-m, --manifest MANIFEST
|
The path to the unencrypted AMI manifest file. | Yes | -m /var/spool/my-first-bundle/Manifest | |||
-k, --privatekey KEY
|
The path to the user's PEM encoded RSA key file. | Yes | -k $HOME/pk-234242DEADCAFE.pem | |||
-s, --source SOURCE-DIRECTORY
|
The directory containing the bundled AMI parts. Defaults to the current directory. | No | -s /tmp/my-bundled-image | |||
-d, --destination DESTINATION-DIRECTORY
|
The directory to unbundle the AMI in. Defaults to the current directory.
|
No | -d /tmp/my-image | |||
--help
|
Display the help message. | No | --help |
$
mkdir unbundled
$
ec2-unbundle -m fred.manifest.xml -s bundled -d unbundled
cat bundled/fred.part.00 bundled/fred.part.01 bundled/fred.part.02 bundled/fred.part.03 bundled/fred.part.04 bundled/fred.part.05 bundled/fred.part.06 bundled/fred.part.07 bundled/fred.part.08 bundled/fred.part.09 bundled/fred.part.10 bundled/fred.part.11 bundled/fred.part.12 bundled/fred.part.13 bundled/fred.part.14 | openssl enc -d -aes-128-cbc -K a8fbe9586b7fd3df893b237f88e351a9 -iv 121febdf64b0322cd4ffda03aa1ab535 | gunzip > unbundled/fred.img Unbundle complete.
$
ls -l unbundled
total 1025008 -rw-r--r-- 1 root root 1048578048 Aug 25 23:46 fred.img