Amazon Elastic Compute Cloud
CLI Reference (API Version 2011-12-15)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

ec2-unbundle

Description

Recreates the AMI from the bundled AMI parts.

Syntax

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

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

Example

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

$ mkdir unbundled
$ ec2-unbundle -m fred.manifest.xml -s bundled -d unbundled
				

$ ls -l unbundled
total 1025008
-rw-r--r-- 1 root root 1048578048 Aug 25 23:46 fred.img
    

Output

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