diff --git a/infrastructure/terraform/modules/ecr/main.tf b/infrastructure/terraform/modules/ecr/main.tf index b1fdc4bb..67b2427b 100644 --- a/infrastructure/terraform/modules/ecr/main.tf +++ b/infrastructure/terraform/modules/ecr/main.tf @@ -19,6 +19,8 @@ resource "aws_ecr_lifecycle_policy" "my_repository_policy" { selection = { tagStatus = "tagged" tagPrefixList = ["prod", "main", "dev"] + countType = "imageCountMoreThan" + countNumber = 9999 } action = { type = "retain"