We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 998fded commit e3b2678Copy full SHA for e3b2678
1 file changed
main.tf
@@ -239,7 +239,7 @@ data "archive_file" "main" {
239
output_path = "source.zip"
240
}
241
242
-# DNS alias record
+# DNS alias records
243
resource "aws_route53_record" "main" {
244
zone_id = "${var.zone_id}"
245
name = "${var.domain_name}"
@@ -251,3 +251,15 @@ resource "aws_route53_record" "main" {
251
evaluate_target_health = false
252
253
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