Skip to main content

image_ancestries

Creates, updates, deletes, gets or lists an image_ancestries resource.

Overview

Nameimage_ancestries
TypeResource
Idaws.ec2.image_ancestries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
image_ancestry_entriesstringA list of entries in the AMI ancestry chain, from the specified AMI to the root AMI.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_image_ancestryselectImageId, regionDryRunRetrieves the ancestry chain of the specified AMI, tracing its lineage back to the root AMI. For more information, see AMI ancestry in Amazon EC2 User Guide.

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
ImageIdstringThe ID of the AMI whose ancestry you want to trace.
regionstringAWS region (default: us-east-1)
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.

SELECT examples

Retrieves the ancestry chain of the specified AMI, tracing its lineage back to the root AMI. For more information, see AMI ancestry in Amazon EC2 User Guide.

SELECT
image_ancestry_entries
FROM aws.ec2.image_ancestries
WHERE ImageId = '{{ ImageId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;