From 8f12610a548b47340499c2659df427ee39ab7932 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Fri, 7 Mar 2025 19:49:02 -0500 Subject: [PATCH] add cleanup_on_fail --- main.tf | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/main.tf b/main.tf index a1af8f2..45d54be 100644 --- a/main.tf +++ b/main.tf @@ -31,12 +31,13 @@ module "loki_irsa_role" { } resource "helm_release" "loki" { - chart = "loki" - version = var.loki_chart_version - name = "loki" - namespace = var.namespace - repository = "https://grafana.github.io/helm-charts" - wait = true + chart = "loki" + version = var.loki_chart_version + name = "loki" + namespace = var.namespace + repository = "https://grafana.github.io/helm-charts" + cleanup_on_fail = true + wait = true values = [ templatefile("${path.module}/values/loki.yml.tpl", {