github.com/kevinklinger/open_terraform@v1.3.6/noninternal/checks/testdata/happypath/checks-happypath.tf (about) 1 resource "null_resource" "a" { 2 lifecycle { 3 precondition { 4 condition = null_resource.no_checks == "" 5 error_message = "Impossible." 6 } 7 precondition { 8 condition = null_resource.no_checks == "" 9 error_message = "Also impossible." 10 } 11 postcondition { 12 condition = null_resource.no_checks == "" 13 error_message = "Definitely not possible." 14 } 15 } 16 } 17 18 resource "null_resource" "no_checks" { 19 } 20 21 module "child" { 22 source = "./child" 23 } 24 25 output "a" { 26 value = null_resource.a.id 27 28 precondition { 29 condition = null_resource.a.id != "" 30 error_message = "A has no id." 31 } 32 }