Skip to main content

bundle_tasks

Creates, updates, deletes, gets or lists a bundle_tasks resource.

Overview

Namebundle_tasks
TypeResource
Idaws.ec2.bundle_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bundle_idstringThe ID of the bundle task.
bundle_task_errorstringIf the task fails, a description of the error.
instance_idstringThe ID of the instance associated with this bundle task.
progressstringThe level of task completion, as a percent (for example, 20%).
start_timestringThe time this task started.
statestringThe state of the task.
storagestringThe Amazon S3 storage locations.
update_timestringThe time of the most recent update for the task.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_bundle_tasksselectregionBundleId, DryRun, FilterDescribes the specified bundle tasks or all of your bundle tasks. Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task. The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
BundleIdarrayThe bundle task IDs. Default: Describes all your bundle tasks.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters. bundle-id - The ID of the bundle task. error-code - If the task failed, the error code returned. error-message - If the task failed, the error message returned. instance-id - The ID of the instance. progress - The level of task completion, as a percentage (for example, 20%). s3-bucket - The Amazon S3 bucket to store the AMI. s3-prefix - The beginning of the AMI name. start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z). state - The state of the task (pending | waiting-for-shutdown | bundling | storing | cancelling | complete | failed). update-time - The time of the most recent update for the task.

SELECT examples

Describes the specified bundle tasks or all of your bundle tasks. Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task. The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

SELECT
bundle_id,
bundle_task_error,
instance_id,
progress,
start_time,
state,
storage,
update_time
FROM aws.ec2.bundle_tasks
WHERE region = '{{ region }}' -- required
AND BundleId = '{{ BundleId }}'
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
;