Skip to content

Commit

Permalink
Infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomL authored May 3, 2019
1 parent 998fded commit e3b2678
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ data "archive_file" "main" {
output_path = "source.zip"
}

# DNS alias record
# DNS alias records
resource "aws_route53_record" "main" {
zone_id = "${var.zone_id}"
name = "${var.domain_name}"
Expand All @@ -251,3 +251,15 @@ resource "aws_route53_record" "main" {
evaluate_target_health = false
}
}

resource "aws_route53_record" "ipv6" {
zone_id = "${var.zone_id}"
name = "${var.domain_name}"
type = "AAAA"

alias {
name = "${aws_cloudfront_distribution.main.domain_name}"
zone_id = "${aws_cloudfront_distribution.main.hosted_zone_id}"
evaluate_target_health = false
}
}

0 comments on commit e3b2678

Please sign in to comment.