Skip to content

aws.ec2.describe_import_image_tasks

Example SQL Queries

SELECT * FROM
aws.ec2.describe_import_image_tasks;

Description

Displays details about an import virtual machine or import snapshot tasks that are already created.

Table Definition

Column NameColumn Data Type
dry_run Input Column

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.

BOOLEAN
filters Input Column

Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted.

STRUCT(
"name" VARCHAR,
"values" VARCHAR[]
)[]
Show child fields
filters[]
Show child fields
filters[].name

The name of the filter. Filter names are case-sensitive.

filters[].values[]
import_task_ids Input Column

The IDs of the import image tasks.

VARCHAR[]
Show child fields
import_task_ids[]
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
architecture

The architecture of the virtual machine.

Valid values: i386 | x86_64 | arm64

VARCHAR
boot_mode

The boot mode of the virtual machine.

VARCHAR
description

A description of the import task.

VARCHAR
encrypted

Indicates whether the image is encrypted.

BOOLEAN
hypervisor

The target hypervisor for the import task.

Valid values: xen

VARCHAR
image_id

The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

VARCHAR
import_task_id

The ID of the import image task.

VARCHAR
kms_key_id

The identifier for the KMS key that was used to create the encrypted image.

VARCHAR
license_specifications

The ARNs of the license configurations that are associated with the import image task.

STRUCT(
"license_configuration_arn" VARCHAR
)[]
Show child fields
license_specifications[]
Show child fields
license_specifications[].license_configuration_arn

The ARN of a license configuration.

license_type

The license type of the virtual machine.

VARCHAR
platform

The description string for the import image task.

VARCHAR
progress

The percentage of progress of the import image task.

VARCHAR
snapshot_details

Information about the snapshots.

STRUCT(
"description" VARCHAR,
"device_name" VARCHAR,
"disk_image_size" DOUBLE,
"format" VARCHAR,
"progress" VARCHAR,
"snapshot_id" VARCHAR,
"status" VARCHAR,
"status_message" VARCHAR,
"url" VARCHAR,
"user_bucket" STRUCT(
"s3_bucket" VARCHAR,
"s3_key" VARCHAR
)
)[]
Show child fields
snapshot_details[]
Show child fields
snapshot_details[].description

A description for the snapshot.

snapshot_details[].device_name

The block device mapping for the snapshot.

snapshot_details[].disk_image_size

The size of the disk in the snapshot, in GiB.

snapshot_details[].format

The format of the disk image from which the snapshot is created.

snapshot_details[].progress

The percentage of progress for the task.

snapshot_details[].snapshot_id

The snapshot ID of the disk being imported.

snapshot_details[].status

A brief status of the snapshot creation.

snapshot_details[].status_message

A detailed status message for the snapshot creation.

snapshot_details[].url

The URL used to access the disk image.

snapshot_details[].user_bucket

The Amazon S3 bucket for the disk image.

Show child fields
snapshot_details[].user_bucket.s3_bucket

The Amazon S3 bucket from which the disk image was created.

snapshot_details[].user_bucket.s3_key

The file name of the disk image.

status

A brief status for the import image task.

VARCHAR
status_message

A descriptive status message for the import image task.

VARCHAR
tags

The tags for the import image task.

STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
Show child fields
tags[]
Show child fields
tags[].key

The key of the tag.

Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

tags[].value

The value of the tag.

Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

usage_operation

The usage operation value.

VARCHAR