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 }