Skip to content

Instantly share code, notes, and snippets.

@lawliet89
Created September 3, 2018 04:51
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 lawliet89/baa2528f23fd659e4b3c70f8a4e1d172 to your computer and use it in GitHub Desktop.
Save lawliet89/baa2528f23fd659e4b3c70f8a4e1d172 to your computer and use it in GitHub Desktop.
Terraform Demo Snippet
# 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