Terraform null_resources does not detect changes , I have to manually do taint to recreate it

Hello @jbardin
I am using the solution suggested as part of these thread,

this is how , I am invoking trigger

    locals {
      template_input = {
      url = var.url
      manifest = var.data
      validate = var.validate
      namespace = var.namespace
      kubeconfig = var.kubeconfig
      }
    }

resource "null_resource" "kubernetes_manifest" {
  

  triggers = {
    manifest_sha1 = sha1(jsonencode(var.trigger == null ? local.template_input : var.trigger))
    provisioner_script = templatefile("${path.module}/kubectl_apply.tpl.sh", local.template_input)
  }

  provisioner "local-exec" {
    environment = {
      KUBECONFIG = "/tmp/kubeconfig_${uuid()}"
    }
    command = self.triggers.provisioner_script
    //command = templatefile("${path.module}/kubectl_apply.tpl.sh", local.template_input)
  }