diff --git a/README.md b/README.md index bcea3cc..18b66e1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ Versions are module variables, but latest versions are intended to be be reflect * 0.0.1 -- 2024-07-23 - updated to latest versions for all components and helm chart (defined in default variables) - created content in the README + - 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 +} diff --git a/main.tf b/main.tf index f901ec8..7b5ed08 100644 --- a/main.tf +++ b/main.tf @@ -41,6 +41,9 @@ locals { } resource "helm_release" "prometheus" { + depends_on = [ + module.images, + ] chart = "prometheus" name = "prometheus" namespace = local.ns diff --git a/version.tf b/version.tf new file mode 100644 index 0000000..d89428e --- /dev/null +++ b/version.tf @@ -0,0 +1,4 @@ +locals { + _module_name = "tfmod-prometheus" + _module_version = "0.0.1" +}