From 8490331de4384a29332205e22a64325bdde2d674 Mon Sep 17 00:00:00 2001 From: Sean Haggerty Date: Mon, 19 Sep 2022 14:25:09 -0400 Subject: [PATCH] fix suffix trimming --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index a5a10d1..424414e 100644 --- a/main.tf +++ b/main.tf @@ -13,7 +13,7 @@ data "aws_route53_zone" "zone" { data "aws_acm_certificate" "cert" { count = local.enable_custom_domain ? 1 : 0 - domain = replace(var.dns_zone, "/.$/", "") # dirty hack to strip off trailing dot + domain = trimsuffix(var.dns_zone, ".") statuses = ["ISSUED"] most_recent = true }