Skip to content

Commit e3b2678

Browse files
authored
Infrastructure
1 parent 998fded commit e3b2678

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

main.tf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ data "archive_file" "main" {
239239
output_path = "source.zip"
240240
}
241241

242-
# DNS alias record
242+
# DNS alias records
243243
resource "aws_route53_record" "main" {
244244
zone_id = "${var.zone_id}"
245245
name = "${var.domain_name}"
@@ -251,3 +251,15 @@ resource "aws_route53_record" "main" {
251251
evaluate_target_health = false
252252
}
253253
}
254+
255+
resource "aws_route53_record" "ipv6" {
256+
zone_id = "${var.zone_id}"
257+
name = "${var.domain_name}"
258+
type = "AAAA"
259+
260+
alias {
261+
name = "${aws_cloudfront_distribution.main.domain_name}"
262+
zone_id = "${aws_cloudfront_distribution.main.hosted_zone_id}"
263+
evaluate_target_health = false
264+
}
265+
}

0 commit comments

Comments
 (0)