Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created July 3, 2018 18:02
Show Gist options
  • Save rms1000watt/7858423d1e7b88d5cac4f54263bc3585 to your computer and use it in GitHub Desktop.
Save rms1000watt/7858423d1e7b88d5cac4f54263bc3585 to your computer and use it in GitHub Desktop.
AWS Cloudfront Route53 Zone ID

Docs: https://docs.aws.amazon.com/general/latest/gr/rande.html

Z2FDTNDATAQYW2

Terraform Example

resource "aws_route53_record" "root" {
  zone_id = "${var.route53_zone_id}"
  name    = "${var.domain_name}"
  type    = "A"

  alias {
    name                   = "${aws_cloudfront_distribution.web.domain_name}"
    zone_id                = "Z2FDTNDATAQYW2"
    evaluate_target_health = true
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment