| Did this page help you? Yes No Tell us about it... |
Bundles an Amazon S3-backed Windows instance.
![]() | Note |
|---|---|
During bundling, only the root store (C:\) is bundled. Data on the ephemeral stores is not preserved. This procedure is not applicable for Linux and UNIX instances or Windows instances that use Amazon EBS volumes as their root devices. |
The short version of this command is ec2bundle.
ec2-bundle-instance
instance_id -b bucket -p prefix -o
access_key_id {-c policy | -s
policy_signature |-w owner_secret_access_key} [-x
hours] [--location location] [-B]
| Name | Description | Required |
|---|---|---|
|
|
The ID of the instance to bundle. Type: String Default: None Example: i-5e73d509 |
Yes |
|
|
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error. Type: String Default: None Example: -b mybucket |
Yes |
|
|
Specifies the prefix for the image component names being stored in Amazon S3. Type: String Default: None Example: -p winami |
Yes |
|
|
The Access Key ID of the owner of the Amazon S3 bucket. Type: String Default: None Example: -o AKIADQKE4SARGYLE |
Yes |
|
|
A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on
the user's behalf. If you provide this parameter, you must also provide either a policy signature, or your Secret
Access Key, so we can create a policy signature for you (the Secret Access Key is not passed to EC2). If you do
not provide this parameter, the Type: String Default: None Example: -c upload-policy |
Conditional |
|
|
The Base-64 encoded signature for the S3 upload policy. If you provide the Type: String Default: None Example: -s upload-policy |
Conditional |
|
|
The AWS Secret Access Key for the owner of the Amazon S3 bucket specified in the
The command line tools client uses the Secret Access Key to sign a policy for you, but does not send the Secret Access Key to EC2. Type: String Default: None Example: -w eW91dHViZS5jb20vd2F0Y2g/dj1SU3NKMTlzeTNKSQ== |
Conditional |
|
|
The validity period, in hours, for a generated upload policy. Type: String Default: 24 Example:-x 8 |
No |
|
|
Specifies the location of the destination Amazon S3 bucket. Type: String Default: None Example: --location my-bucket-location |
No |
|
|
Specifies that no Amazon S3 bucket should be created if one doesn't already exist, and that no attempt should be made to fix incorrect permissions. Type: Boolean Default: False Example: -B |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
BUNDLE identifier
ID of the bundle
ID of the instance
Bucket name
Bundle prefix
Bundle start time
Bundle update time
State
Amazon EC2 command line tools display errors on stderr.
This example bundles an instance.
PROMPT>ec2-bundle-instance i-12345678 -b mybucket -p winami -o AIDADH4IGTRXXKCD -w eW91dHViZS5jb20vd2F0Y2g/dj1SU3NKMTlzeTNKSQ==BUNDLE bun-c1a540a8 i-12345678 mybucket winami 2008-09-15T17:15:20+0000 pending