From 28333f4a8bc94364ce1102b96b2d5bab70e12267 Mon Sep 17 00:00:00 2001 From: BMO Date: Mon, 11 Jan 2021 21:36:55 -0600 Subject: [PATCH] fix(CF stack): Route53DependencyLambda zone matching logic --- cloudformation/stack.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cloudformation/stack.yaml b/cloudformation/stack.yaml index 86164ea2..4e295961 100644 --- a/cloudformation/stack.yaml +++ b/cloudformation/stack.yaml @@ -696,9 +696,7 @@ Resources: if (properties.Id) { return zone.Id === "/hostedzone/" + properties.Id; } else { - var tldParts = properties.Domain.split("."); - var tld = tldParts[tldParts.length - 2] + "." + tldParts[tldParts.length - 1]; - return zone.Name === tld + "."; + return zone.Name === properties.Domain + '.'; } }); if (matching.length != 1)