bitovi/github-actions-deploy-docker-to-ec2

data source for domain certificate should not be called if no domain is provided

LeoDiazL opened this issue · 0 comments

local.fqdn_provided will never be != ""

count = var.no_cert == "true" ? 0 : ( var.create_root_cert != "true" ? ( var.create_sub_cert != "true" ? ( local.fqdn_provided != "" ? 1 : 0 ) : 0 ) : 0 )

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
}