Skip to content

Commit

Permalink
Merge pull request #190 from uktrade/JamesPRobinson-patch-1
Browse files Browse the repository at this point in the history
fix/must provide tag pattern when tag_status = 'tagged' in ecr lifecycle rule
  • Loading branch information
JamesPRobinson authored Dec 18, 2024
2 parents c133bf2 + 7fe1e67 commit 0766664
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions infra/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,10 @@ data "aws_ecr_lifecycle_policy_document" "keep_last_five_releases" {
rule {
priority = 2
selection {
tag_status = "tagged"
count_type = "imageCountMoreThan"
count_number = 5
tag_status = "tagged"
tag_pattern_list = ["*"]
count_type = "imageCountMoreThan"
count_number = 5
}
}
# ... and just in case we somehow end up with untagged images, expire them after 1 day
Expand Down

0 comments on commit 0766664

Please sign in to comment.