Skip to content

Commit e5f11a1

Browse files
committed
Revert "support CNAME if entry is not all digits"
Alias only support A records This reverts commit fad159b.
1 parent fad159b commit e5f11a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resource "aws_route53_record" "default" {
1414
count = "${module.enabled.value ? length(compact(var.aliases)) : 0}"
1515
zone_id = "${data.aws_route53_zone.default.zone_id}"
1616
name = "${element(compact(var.aliases), count.index)}"
17-
type = "${(upper(var.target_dns_name) == var.target_dns_name && lower(var.target_dns_name) == var.target_dns_name) ? "A" : "CNAME"}"
17+
type = "A"
1818

1919
alias {
2020
name = "${var.target_dns_name}"

0 commit comments

Comments
 (0)