Skip to content

aws.imagebuilder.list_lifecycle_execution_resources

Example SQL Queries

SELECT * FROM
aws.imagebuilder.list_lifecycle_execution_resources
WHERE
"lifecycle_execution_id" = 'VALUE';

Description

List resources that the runtime instance of the image lifecycle identified for lifecycle actions.

Table Definition

Column NameColumn Data Type
lifecycle_execution_id Required Input Column

Runtime details for the specified runtime instance of the lifecycle policy.

VARCHAR
max_results Input Column

The maximum items to return in a request.

BIGINT
next_token Input Column

The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

VARCHAR
parent_resource_id Input Column

You can leave this empty to get a list of Image Builder resources that were identified for lifecycle actions.

To get a list of associated resources that are impacted for an individual resource (the parent), specify its Amazon Resource Name (ARN). Associated resources are produced from your image and distributed when you run a build, such as AMIs or container images stored in ECR repositories.

VARCHAR
_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.

lifecycle_execution_state

The current state of the lifecycle runtime instance.

STRUCT(
"status" VARCHAR,
"reason" VARCHAR
)
Show child fields
lifecycle_execution_state.reason

The reason for the current status.

lifecycle_execution_state.status

The runtime status of the lifecycle execution.

resources

A list of resources that were identified for lifecycle actions.

STRUCT(
"account_id" VARCHAR,
"resource_id" VARCHAR,
"state" STRUCT(
"status" VARCHAR,
"reason" VARCHAR
),
"action" STRUCT(
"name" VARCHAR,
"reason" VARCHAR
),
"region" VARCHAR,
"snapshots" STRUCT(
"snapshot_id" VARCHAR,
"state" STRUCT(
"status" VARCHAR,
"reason" VARCHAR
)
)[],
"image_uris" VARCHAR[],
"start_time" TIMESTAMP_S,
"end_time" TIMESTAMP_S
)[]
Show child fields
resources[]
Show child fields
resources[].account_id

The account that owns the impacted resource.

resources[].action

The action to take for the identified resource.

Show child fields
resources[].action.name

The name of the resource that was identified for a lifecycle policy action.

resources[].action.reason

The reason why the lifecycle policy action is taken.

resources[].end_time

The ending timestamp from the lifecycle action that was applied to the resource.

resources[].image_uris[]
resources[].region

The Amazon Web Services Region where the lifecycle execution resource is stored.

resources[].resource_id

Identifies the impacted resource. The resource ID depends on the type of resource, as follows.

  • Image Builder image resources: Amazon Resource Name (ARN)

  • Distributed AMIs: AMI ID

  • Container images distributed to an ECR repository: image URI or SHA Digest

resources[].snapshots[]
Show child fields
resources[].snapshots[].snapshot_id

Identifies the impacted snapshot resource.

resources[].snapshots[].state

The runtime status of the lifecycle action taken for the snapshot.

Show child fields
resources[].snapshots[].state.reason

Messaging that clarifies the reason for the assigned status.

resources[].snapshots[].state.status

The runtime status of the lifecycle action taken for the impacted resource.

resources[].start_time

The starting timestamp from the lifecycle action that was applied to the resource.

resources[].state

The runtime state for the lifecycle execution.

Show child fields
resources[].state.reason

Messaging that clarifies the reason for the assigned status.

resources[].state.status

The runtime status of the lifecycle action taken for the impacted resource.