Delay tearing down in Terraform Test?

I’m experimenting with Terraform Test. However, I would like to delay the tearing down step. I tried to use time_sleep resource inside the test code, but to no avail.

resource "time_sleep" "delay_destroy" {
  destroy_duration = "60s"
}

I would like to review the created resources in the tests manually on any cloud provider portal before tearing it down.

Show verbose output is available by using terraform test --verbose command, but it would be nice if users can delay tearing down.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.