ec2-download-bundle
ec2-download-bundle
-b S3-BUCKET -m MANIFEST -a AWS-ACCESS-KEY-ID -s
AWS-SECRET-KEY -k PRIVATE-KEY
[-p PREFIX] [-d DIRECTORY] [--url URL]
Download the specified bundles from S3 storage.
Status messages indicating the various stages of the download process are displayed.
Note | |
---|---|
Note that this tool does not support the common arguments |
Option | Definition | Required? | Example | |||
---|---|---|---|---|---|---|
-b, --bucket S3-BUCKET
|
The name of the AmazonĀ S3 bucket from which to fetch the bundles. | Yes | -b aes-cracked | |||
-m, --manifest MANIFEST
|
The manifest filename. | Yes | -m /var/spool/my-first-bundle/Manifest | |||
-a, --access-key USER
|
The user's AWS access key ID. | Yes | -a 10QMXFEV71ZS32XQFTR2 | |||
-s, --secret-key PASSWORD
|
The user's AWS secret access key. | Yes | -s DMADSSfPfdaDjbK+RRUhS/aDrjsiZadgAUm8gRU2 | |||
-k, --privatekey KEY
|
The user's private key used to decrypt the manifest. | Yes | -k pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem | |||
-p, --prefix PREFIX
|
The filename prefix for the bundled AMI files. Defaults to "image". | No | -p my-image | |||
-d, --directory DIRECTORY
|
The directory into which the downloaded bundles are
saved. Defaults to the current working directory.
|
No | -d /tmp/my-downloaded-bundle | |||
--url URL
|
The S3 service URL. Defaults to https://s3.amazonaws.com. | No | --url https://s3.amazonaws.ie | |||
--help
|
Display the help message. | No | --help |
$
mkdir bundled
$
ec2-download-bundle -b my-s3-bucket -m fred.manifest.xml -a 10QMXFEV71ZS32XQFTR2 -s DMADSSfPfdaDjbK+RRUhS/aDrjsiZadgAUm8gRU2 -k pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem -d bundled
downloading manifest https://s3.amazonaws.com/my-s3-bucket/image.manifest.xml to bundled/image.manifest.xml ... downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.00 to bundled/image.part.00 ... Downloaded image.part.00 from https://s3.amazonaws.com/my-s3-bucket. downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.01 to bundled/image.part.01 ... Downloaded image.part.01 from https://s3.amazonaws.com/my-s3-bucket. downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.02 to bundled/image.part.02 ... Downloaded image.part.02 from https://s3.amazonaws.com/my-s3-bucket. downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.03 to bundled/image.part.03 ... Downloaded image.part.03 from https://s3.amazonaws.com/my-s3-bucket. downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.04 to bundled/image.part.04 ... Downloaded image.part.04 from https://s3.amazonaws.com/my-s3-bucket. downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.05 to bundled/image.part.05 ... Downloaded image.part.05 from https://s3.amazonaws.com/my-s3-bucket. downloading part https://s3.amazonaws.com/my-s3-bucket/image.part.06 to bundled/image.part.06 ... Downloaded image.part.06 from https://s3.amazonaws.com/my-s3-bucket. Download Bundle complete.