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
}
}