Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reusable-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ECR repository with 4-rule lifecycle policy.
| Rule | Default |
|------|---------|
| Keep N semver releases (`v*`) | 5 |
| Keep N main builds (`main-*`, `master-*`) | 3 |
| Keep N main builds (`main-*`) | 3 |
| Expire untagged | 1 day |
| Expire other tags | 7 days |

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/ecr-repo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "aws_ecr_lifecycle_policy" "this" {
description = "Keep last ${var.main_keep_count} main builds"
selection = {
tagStatus = "tagged"
tagPrefixList = ["main-", "master-"]
tagPrefixList = ["main-"]
countType = "imageCountMoreThan"
countNumber = var.main_keep_count
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/ecr-repo/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variable "semver_keep_count" {
}

variable "main_keep_count" {
description = "Number of main/master branch build images to keep"
description = "Number of main branch build images to keep"
type = number
default = 3
}
Expand Down
Loading