From e681a014e2b05fb595cfb95ee5c627d4450aad70 Mon Sep 17 00:00:00 2001 From: Jikan7 Date: Tue, 11 Jun 2024 12:35:16 +0200 Subject: [PATCH] delete duplicated policy --- modules/ecr-repository/lifecycle.json | 30 --------------------------- 1 file changed, 30 deletions(-) delete mode 100644 modules/ecr-repository/lifecycle.json diff --git a/modules/ecr-repository/lifecycle.json b/modules/ecr-repository/lifecycle.json deleted file mode 100644 index 54b85bf..0000000 --- a/modules/ecr-repository/lifecycle.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "rules": [ - { - "rulePriority": 1, - "description": "Keep last ${image_count} images prefixed with version", - "selection": { - "tagStatus": "tagged", - "tagPrefixList": ["v"], - "countType": "imageCountMoreThan", - "countNumber": ${image_count} - }, - "action": { - "type": "expire" - } - }, - { - "rulePriority": 2, - "description": "Expire untagged images older than ${day_count} days", - "selection": { - "tagStatus": "untagged", - "countType": "sinceImagePushed", - "countUnit": "days", - "countNumber": ${day_count} - }, - "action": { - "type": "expire" - } - } - ] -}