From 7c7e8f5690110f860431a7470fe9f65fe76696e2 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 22 Jul 2024 21:23:31 -0400 Subject: [PATCH] add force_delete and lifecycle policies to copy_images --- README.md | 1 + copy_images.tf | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 29bf325..e5f9f7b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ # CHANGELOG * 0.0.1 -- 2024-07-22 + - add force_delete and lifecycle policies to copy_images - updated version.tf to 0.0.1 - included module.images in depends on helm charts - created changelog diff --git a/copy_images.tf b/copy_images.tf index 99c301f..8bb3eab 100644 --- a/copy_images.tf +++ b/copy_images.tf @@ -76,7 +76,7 @@ locals { } module "images" { - source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git/?ref=2.0.2" + source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git/?ref=tf-upgrade" profile = var.profile application_name = var.cluster_name @@ -92,5 +92,8 @@ module "images" { ## region = "" ## source_password = "" ## source_username = "" -} + enable_lifecycle_policy = true + lifecycle_policy_all = true + force_delete = true +}