Skip to content

Commit 339163e

Browse files
authored
fix: ecr lifecycle typo (#78)
1 parent cf1e363 commit 339163e

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

terraform/ecr.tf

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,37 @@ resource "aws_ecr_lifecycle_policy" "untagged_removal_policy" {
1010

1111
policy = <<EOF
1212
{
13-
"rules": [
14-
{
15-
"action": {
16-
"type": "expire"
17-
},
18-
"selection": {
19-
"countType": "sinceImagePushed",
20-
"countUnit": "days",
21-
"countNumber": 1,
22-
"tagStatus": "tagged",
23-
"tagPrefixList": [
24-
"PR-"
25-
]
26-
},
27-
"description": "Remove PR images",
28-
"rulePriority": 1
29-
},
30-
{
31-
"action": {
32-
"type": "expire"
33-
},
34-
"selection": {
35-
"countType": "sinceImagePushed",
36-
"countUnit": "days",
37-
"countNumber": 7,
38-
"tagStatus": "any",
39-
},
13+
"rules": [
14+
{
15+
"action": {
16+
"type": "expire"
17+
},
18+
"selection": {
19+
"countType": "sinceImagePushed",
20+
"countUnit": "days",
21+
"countNumber": 1,
22+
"tagStatus": "tagged",
23+
"tagPrefixList": [
24+
"PR-"
25+
]
26+
},
27+
"description": "Remove PR images",
28+
"rulePriority": 1
29+
},
30+
{
31+
"action": {
32+
"type": "expire"
33+
},
34+
"selection": {
35+
"countType": "sinceImagePushed",
36+
"countUnit": "days",
37+
"countNumber": 7,
38+
"tagStatus": "any",
4039
"description": "Remove any images older than 7 days",
4140
"rulePriority": 2
42-
}
43-
]
41+
}
42+
}
43+
]
4444
}
4545
EOF
4646
}

0 commit comments

Comments
 (0)