Last active
April 29, 2019 15:27
-
-
Save hervekhg/e351607efdd1a41f99c3d4bb8246b4dd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# -------------------------------------------------------------- | |
# ROUTE53 ASSOCIATE TO CLOUDFRONT DISTRIBUTION | |
# --------------------------------------------------------------- | |
resource "aws_route53_record" "front" { | |
provider = "aws.mgmt" | |
zone_id = "thehktech.com" | |
name = "tuto" | |
type = "A" | |
alias { | |
evaluate_target_health = true | |
name = "${aws_cloudfront_distribution.site_distribution.domain_name}" | |
zone_id = "${aws_cloudfront_distribution.site_distribution.hosted_zone_id}" | |
} | |
depends_on = ["aws_cloudfront_distribution.site_distribution"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment