diff --git a/modules/admin/cluster.tf b/modules/admin/cluster.tf index bbda913a..6116481c 100644 --- a/modules/admin/cluster.tf +++ b/modules/admin/cluster.tf @@ -69,6 +69,30 @@ resource "aws_ecr_repository_policy" "admin_docker_dhcp_repository_policy" { EOF } +resource "aws_ecr_lifecycle_policy" "lifecycle_policy" { + repository = aws_ecr_repository.admin_ecr.name + + policy = <