Null_resource run everytime

I have a usecase wherein null_resource needs to run everytime.
In the first run, null_resource works and shell script executes.

There is a minor change in the dependent resource it gets changed wherein null_resource doesn’t get executed despite having a trigger - timestamp() in the subsequent runs. Please help.

Code:
resource “null_resource” “verify” {
depends_on =
triggers = {
always_run = “${timestamp()}”
}

provisioner “local-exec” {
command = “sleep 10”
}
provisioner “local-exec” {
environment = {
key = “”
}
command = <<EOT

}
}

Hi @gaya3chandran1

The configuration you have here should produce a change in every plan due to the timestamp() function, at least in all recent versions of Terraform.

Can you show a more complete example of what isn’t working for you?