data source for domain certificate should not be called if no domain is provided
LeoDiazL opened this issue · 0 comments
LeoDiazL commented
local.fqdn_provided will never be != ""
data "aws_acm_certificate" "issued" {
count = var.no_cert == "true" ? 0 : ( var.create_root_cert != "true" ? ( var.create_sub_cert != "true" ? ( local.fqdn_provided != "" ? 1 : 0 ) : 0 ) : 0 )
domain = var.domain_name
}