ec2-unbundle
ec2-unbundle
-m manifest
-k private_key
[-d destination_directory
]
[-s source_directory
]
Recreates the AMI from the bundled AMI parts.
Note | |
---|---|
This tool does not support the common arguments |
Option | Description | Required |
---|---|---|
|
The path to the unencrypted AMI manifest file. Example: |
Yes |
|
The path to your PEM-encoded RSA key file. Example: |
Yes |
|
The directory in which to unbundle the AMI. The destination directory must exist. Default: The current directory Example: |
No |
|
The directory containing the bundled AMI parts. Default: The current directory Example: |
No |
|
Display the help message. Example: |
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.