bundle_tasks
Creates, updates, deletes, gets or lists a bundle_tasks resource.
Overview
| Name | bundle_tasks |
| Type | Resource |
| Id | aws.ec2.bundle_tasks |
Fields
The following fields are returned by SELECT queries:
- describe_bundle_tasks
| Name | Datatype | Description |
|---|---|---|
bundle_id | string | The ID of the bundle task. |
bundle_task_error | string | If the task fails, a description of the error. |
instance_id | string | The ID of the instance associated with this bundle task. |
progress | string | The level of task completion, as a percent (for example, 20%). |
start_time | string | The time this task started. |
state | string | The state of the task. |
storage | string | The Amazon S3 storage locations. |
update_time | string | The time of the most recent update for the task. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_bundle_tasks | select | region | BundleId, DryRun, Filter | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
BundleId | array | The bundle task IDs. Default: Describes all your bundle tasks. |
DryRun | boolean | Checks 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. |
Filter | array | The 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
- describe_bundle_tasks
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 }}'
;