Created
February 4, 2021 18:16
-
-
Save HunterLarco/5c93409e5df8adf55c1d0f56c0cf1b64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_route53_record" "frontend" { | |
zone_id = var.zones.painted_nyc.zone_id | |
name = "painted.nyc" | |
type = "A" | |
alias { | |
name = aws_cloudfront_distribution.frontend.domain_name | |
zone_id = aws_cloudfront_distribution.frontend.hosted_zone_id | |
evaluate_target_health = false | |
} | |
} | |
resource "aws_route53_record" "www_frontend" { | |
zone_id = var.zones.painted_nyc.zone_id | |
name = "www.painted.nyc" | |
type = "A" | |
alias { | |
name = aws_cloudfront_distribution.frontend.domain_name | |
zone_id = aws_cloudfront_distribution.frontend.hosted_zone_id | |
evaluate_target_health = false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment