Skip to content

Commit

Permalink
fix: ecr lifecycle typo (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
naut-brian authored Apr 4, 2023
1 parent cf1e363 commit 339163e
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions terraform/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ resource "aws_ecr_lifecycle_policy" "untagged_removal_policy" {

policy = <<EOF
{
"rules": [
{
"action": {
"type": "expire"
},
"selection": {
"countType": "sinceImagePushed",
"countUnit": "days",
"countNumber": 1,
"tagStatus": "tagged",
"tagPrefixList": [
"PR-"
]
},
"description": "Remove PR images",
"rulePriority": 1
},
{
"action": {
"type": "expire"
},
"selection": {
"countType": "sinceImagePushed",
"countUnit": "days",
"countNumber": 7,
"tagStatus": "any",
},
"rules": [
{
"action": {
"type": "expire"
},
"selection": {
"countType": "sinceImagePushed",
"countUnit": "days",
"countNumber": 1,
"tagStatus": "tagged",
"tagPrefixList": [
"PR-"
]
},
"description": "Remove PR images",
"rulePriority": 1
},
{
"action": {
"type": "expire"
},
"selection": {
"countType": "sinceImagePushed",
"countUnit": "days",
"countNumber": 7,
"tagStatus": "any",
"description": "Remove any images older than 7 days",
"rulePriority": 2
}
]
}
}
]
}
EOF
}

0 comments on commit 339163e

Please sign in to comment.