github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/configs/testdata/error-files/precondition-postcondition-constant.tf (about) 1 resource "test" "test" { 2 lifecycle { 3 precondition { 4 condition = true # ERROR: Invalid precondition expression 5 error_message = "Must be true." 6 } 7 postcondition { 8 condition = true # ERROR: Invalid postcondition expression 9 error_message = "Must be true." 10 } 11 } 12 } 13 14 data "test" "test" { 15 lifecycle { 16 precondition { 17 condition = true # ERROR: Invalid precondition expression 18 error_message = "Must be true." 19 } 20 postcondition { 21 condition = true # ERROR: Invalid postcondition expression 22 error_message = "Must be true." 23 } 24 } 25 } 26 27 output "test" { 28 value = "" 29 30 precondition { 31 condition = true # ERROR: Invalid precondition expression 32 error_message = "Must be true." 33 } 34 }