blob: d067bc2aa03ec4a15e36959a52a0d121c2c4b7c1 [file] [log] [blame]
resource "null_resource" "b" {
lifecycle {
precondition {
condition = self.id == ""
error_message = "Impossible."
}
}
}
resource "null_resource" "c" {
count = 2
lifecycle {
postcondition {
condition = self.id == ""
error_message = "Impossible."
}
}
}
output "b" {
value = null_resource.b.id
precondition {
condition = null_resource.b.id != ""
error_message = "B has no id."
}
}