github.com/pulumi/terraform@v1.4.0/pkg/configs/testdata/valid-files/preconditions-postconditions.tf (about) 1 resource "test" "test" { 2 lifecycle { 3 precondition { 4 condition = path.module != "" 5 error_message = "Must be true." 6 } 7 postcondition { 8 condition = path.module != "" 9 error_message = "Must be true." 10 } 11 } 12 } 13 14 data "test" "test" { 15 lifecycle { 16 precondition { 17 condition = path.module != "" 18 error_message = "Must be true." 19 } 20 postcondition { 21 condition = path.module != "" 22 error_message = "Must be true." 23 } 24 } 25 } 26 27 output "test" { 28 value = "" 29 30 precondition { 31 condition = path.module != "" 32 error_message = "Must be true." 33 } 34 }