From 9b7fefdf71284c3475f320b0267a7689bf9b22de Mon Sep 17 00:00:00 2001 From: Harshit Luthra Date: Mon, 28 Oct 2024 13:58:19 +0530 Subject: [PATCH] changed update_trigger to bool --- main.tf | 3 ++- variables.tf | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index dd79b2f..9ee6994 100644 --- a/main.tf +++ b/main.tf @@ -1,13 +1,14 @@ data "aws_eks_cluster_auth" "cluster" { name = var.cluster_name } + resource "null_resource" "helm_install" { triggers = { chart_name = var.chart_name chart_version = var.chart_version release_name = var.release_name namespace = var.namespace - update_trigger = var.trigger_helm_update != null ? var.trigger_helm_update : "initial" + update_trigger = var.trigger_helm_update != null ? timestamp() : "initial" } provisioner "local-exec" { diff --git a/variables.tf b/variables.tf index 022c7bc..79744a7 100644 --- a/variables.tf +++ b/variables.tf @@ -56,6 +56,6 @@ variable "set_values" { } variable "trigger_helm_update" { description = "Set this to any value to trigger a Helm chart update" - type = string - default = null + type = bool + default = false }