File tree Expand file tree Collapse file tree 1 file changed +29
-29
lines changed
Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Original file line number Diff line number Diff 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}
4545EOF
4646}
You can’t perform that action at this time.
0 commit comments