From 6a89e8fc71ed7058dc40c95f1c94de68e1c37dca Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Mon, 2 Feb 2026 18:54:39 +0000 Subject: [PATCH] add count rules within docker --- infrastructure/terraform/modules/ecr/main.tf | 2 ++ 1 file changed, 2 insertions(+) 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"