Image Builder Lifecycle Policy

Image Builder Lifecycle Policy in AWS defines rules for managing the lifecycle of images created with EC2 Image Builder. It allows you to automate the retention, expiration, and cleanup of images based on criteria such as age or count, helping reduce storage costs and maintain compliance by ensuring only relevant images are kept.

aws.imagebuilder_lifecycle_policy

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
arncorestringThe Amazon Resource Name (ARN) of the lifecycle policy resource.
date_createdcoretimestampThe timestamp when Image Builder created the lifecycle policy resource.
date_last_runcoretimestampThe timestamp for the last time Image Builder ran the lifecycle policy.
date_updatedcoretimestampThe timestamp when Image Builder updated the lifecycle policy resource.
descriptioncorestringOptional description for the lifecycle policy.
execution_rolecorestringThe name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
namecorestringThe name of the lifecycle policy.
policy_detailscorejsonThe configuration details for a lifecycle policy resource.
resource_selectioncorejsonResource selection criteria used to run the lifecycle policy.
resource_typecorestringThe type of resources the lifecycle policy targets.
statuscorestringIndicates whether the lifecycle policy resource is enabled.
tagscorehstore