Skip to content

Commit

Permalink
Merge pull request #1 from FitnessKeeper/hotfix/2.1.0-aws-provider-v3…
Browse files Browse the repository at this point in the history
…-support

fix suffix trimming
  • Loading branch information
automationforthepeople authored Sep 19, 2022
2 parents f8af50f + 8490331 commit 2eed99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2eed99b

Please sign in to comment.