# Simple lifecycle policy that expires images that are untagged, or over 1 year old. # # Lifecycle policies for ECR aren't very powerful. To do better than this, # we would need to change the way we tag images. But ECR is nearly as cheap # as S3 storage, so a few extra images isn't going to hurt anybody. resource "aws_ecr_lifecycle_policy" "basicpolicy" { repository = aws_ecr_repository.this.name policy = <