Skip to content

Instantly share code, notes, and snippets.

@arbabnazar
Created April 24, 2016 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arbabnazar/bdf39f14be1d42832650f745f0100f1f to your computer and use it in GitHub Desktop.
Save arbabnazar/bdf39f14be1d42832650f745f0100f1f to your computer and use it in GitHub Desktop.
//Add Root Route53 Records
resource "aws_route53_record" "main_record" {
zone_id = "${var.hosted_zone_id}"
name = "${var.route53_record_name}.${var.domain_name}"
type = "A"
alias {
name = "${aws_cloudfront_distribution.cloudfront_distribution.domain_name}"
zone_id = "${var.alias_zone_id}"
evaluate_target_health = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment