Configure lifecycle policy preview using the console
Open Amazon's ECS console at https://console.aws.amazon.com/ecs/ .
In the navigation pane, select the region that contains the repository where you can preview the lifecycle policy.
In the navigation bar, select Repositories and select a repository.
On the All Repositories: Repository_Name page, select Dry Run Lifecycle Rules Add.
Enter the following data for your lifecycle policy rule:
For rule priority, enter a number for rule priority.
In the Rule Description field, enter a description of the lifecycle policy. The rule.
For image status, select Tag or Untagged.
If you specified Tagged for Image Status, then for the list of tag prefixes, you can optionally specify a list of image tags, actions with your life cycle policy. If you specified Untagged, this field should be empty.
For matching criteria, select values ββfor the types Count, Count Number, and Count (if applicable).
Choose save
Create additional lifecycle policy rules by repeating steps 5-7.
To start a lifecycle policy preview, select Save and view the results.
In the "Image Preview Results" section, review the impact of your lifecycle preview policy.
If you are satisfied with the results of the preview, select Apply As Lifecycle to create a lifecycle policy with the specified rule.