From 2cc2e1e43bf0f062164aca38eacfb6c66b28cc2e Mon Sep 17 00:00:00 2001 From: Goh Hong Yi Date: Thu, 2 Nov 2023 16:55:48 +0800 Subject: [PATCH] test new condition --- modules/custom_domain/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/custom_domain/main.tf b/modules/custom_domain/main.tf index f1c673b..c7efb02 100644 --- a/modules/custom_domain/main.tf +++ b/modules/custom_domain/main.tf @@ -36,7 +36,7 @@ resource "aws_api_gateway_base_path_mapping" "mapping" { } resource "aws_acm_certificate" "cert" { - count = var.create_acm_cert && var.cert_arn == "" ? 1 : 0 + count = var.create_acm_cert ? 1 : 0 domain_name = var.domain_name validation_method = "DNS"