Created
September 3, 2018 04:51
-
-
Save lawliet89/baa2528f23fd659e4b3c70f8a4e1d172 to your computer and use it in GitHub Desktop.
Terraform Demo Snippet
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
# This file manages Route53 records | |
data "aws_route53_zone" "domain" { | |
name = "${var.route53_zone}" | |
} | |
resource "aws_route53_record" "domain" { | |
zone_id = "${data.aws_route53_zone.domain.zone_id}" | |
name = "${var.domain}" | |
type = "A" | |
alias { | |
name = "${aws_lb.lb.dns_name}" | |
zone_id = "${aws_lb.lb.zone_id}" | |
evaluate_target_health = false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment