Skip to content

Instantly share code, notes, and snippets.

@david7482
Created January 29, 2020 09:19
Show Gist options
  • Save david7482/73a47e131ceb774a2ef0b3e372b948b5 to your computer and use it in GitHub Desktop.
Save david7482/73a47e131ceb774a2ef0b3e372b948b5 to your computer and use it in GitHub Desktop.
resource "aws_route53_record" "website" {
zone_id = data.aws_route53_zone.main.zone_id
name = var.fqdn
type = "A"
alias {
evaluate_target_health = false
name = aws_cloudfront_distribution.website.domain_name
zone_id = aws_cloudfront_distribution.website.hosted_zone_id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment