Skip to content

Commit 07b8ef5

Browse files
authored
Remove deprecated ECR lifecycle policy from recordprocessor ECR repository configuration in Terraform. This change simplifies the repository management by eliminating unnecessary lifecycle rules. (#1426)
1 parent 5f61307 commit 07b8ef5

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

infrastructure/account/recordprocessor_ecr_repo.tf

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,4 @@ resource "aws_ecr_repository" "recordprocessor_repository" {
44
}
55
image_tag_mutability = "IMMUTABLE"
66
name = "imms-recordprocessor-repo"
7-
}
8-
9-
resource "aws_ecr_lifecycle_policy" "recordprocessor_repository_lifecycle_policy" {
10-
repository = aws_ecr_repository.recordprocessor_repository.name
11-
12-
policy = <<EOF
13-
{
14-
"rules": [
15-
{
16-
"rulePriority": 1,
17-
"description": "Keep last 10 images.",
18-
"selection": {
19-
"tagStatus": "any",
20-
"countType": "imageCountMoreThan",
21-
"countNumber": 10
22-
},
23-
"action": {
24-
"type": "expire"
25-
}
26-
}
27-
]
28-
}
29-
EOF
307
}

0 commit comments

Comments
 (0)