github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/configs/testdata/invalid-files/precondition-postcondition-missing-condition.tf (about)

     1  resource "example" "example" {
     2    foo = 5
     3  
     4    lifecycle {
     5      precondition { # ERROR: Missing required argument
     6        error_message = "Can a check block fail without a condition?"
     7      }
     8      postcondition { # ERROR: Missing required argument
     9        error_message = "Do not try to pass the check; only realize that there is no check."
    10      }
    11    }
    12  }