diff --git a/main.tf b/main.tf index 65bbd27..4ceedfc 100644 --- a/main.tf +++ b/main.tf @@ -53,7 +53,7 @@ resource "null_resource" "cert" { ] postcondition { - condition = self.triggers["cert"] != "" || !var.use_host_cert + condition = data.external.cert.result["cert"] != "" || !var.use_host_cert error_message = "Error retrieving host certificate." } }