ec2-unbundle

ec2-unbundle -m manifest -k private_key [-d destination_directory] [-s source_directory]

Recreates the AMI from the bundled AMI parts.

[Note]Note

This tool does not support the Common Options.

OptionDescriptionRequired

-m, --manifest manifest

The path to the unencrypted AMI manifest file.

Example: -m /var/spool/my-first-bundle/Manifest

Yes

-k, --privatekey private_key

The path to your PEM-encoded RSA key file.

Example: -k $HOME/pk-234242DEADCAFE.pem

Yes

-d, --destination destination_directory

The directory in which to unbundle the AMI. The destination directory must exist.

Default: The current directory

Example: -d /tmp/my-image

No

-s, --source source_directory

The directory containing the bundled AMI parts.

Default: The current directory

Example: -s /tmp/my-bundled-image

No

--help

Display the help message.

Example: --help

No

This example unbundles the AMI specified in the fred.manifest.xml file.

$ 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
    

Status messages indicating the various stages of the unbundling process are displayed.