Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 8, 2024
1 parent 0d214b1 commit a6f177e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acmpca/certificate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "tls_cert_request" "certificate" {

lifecycle {
precondition {
condition = var.certificate_cn != null && local.cert_dns != null
condition = var.certificate_cn != null || local.cert_dns != null
error_message = "One of the certificate_cn or certificate_dns must be provided and not null."
}
}
Expand Down

0 comments on commit a6f177e

Please sign in to comment.