From d51dc3b8e73fded561976d581cef01baa5331d07 Mon Sep 17 00:00:00 2001 From: Nikki Tebaldi <17799906+nikki-t@users.noreply.github.com> Date: Tue, 25 Jul 2023 22:02:07 +0000 Subject: [PATCH] Create purger ECR repo --- terraform/generate-ecr.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terraform/generate-ecr.tf b/terraform/generate-ecr.tf index 631294b..71431c5 100644 --- a/terraform/generate-ecr.tf +++ b/terraform/generate-ecr.tf @@ -76,4 +76,14 @@ resource "aws_ecr_repository" "reporter" { image_scanning_configuration { scan_on_push = false } +} + +# Purger +resource "aws_ecr_repository" "purger" { + name = "${var.prefix}-purger" + image_tag_mutability = "MUTABLE" + force_delete = true + image_scanning_configuration { + scan_on_push = false + } } \ No newline at end of file