Skip to content

Commit 71ca99d

Browse files
alexandrusavinactions-botGowiem
authored
Remove appending of a dot to the zone name (#22)
Co-authored-by: actions-bot <[email protected]> Co-authored-by: Matt Gowie <[email protected]>
1 parent 0ae37ae commit 71ca99d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ resource "aws_acm_certificate" "default" {
1111
}
1212

1313
locals {
14-
zone_name = var.zone_name == "" ? var.domain_name : var.zone_name
14+
zone_name = var.zone_name == "" ? "${var.domain_name}." : var.zone_name
1515
process_domain_validation_options = var.enabled && var.process_domain_validation_options && var.validation_method == "DNS"
1616
domain_validation_options_list = local.process_domain_validation_options ? aws_acm_certificate.default.0.domain_validation_options : []
1717
}
1818

1919
data "aws_route53_zone" "default" {
2020
count = local.process_domain_validation_options ? 1 : 0
21-
name = "${local.zone_name}."
21+
name = local.zone_name
2222
private_zone = false
2323
}
2424

0 commit comments

Comments
 (0)