From e5349766f07ddfd2edd91d73efcc514872ef4dbc Mon Sep 17 00:00:00 2001 From: Dave Dash Date: Wed, 27 Sep 2017 16:41:28 -0700 Subject: [PATCH] Expose Cloudfront Zone for DNS Alias records --- outputs.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/outputs.tf b/outputs.tf index 3991765..1fe384d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -17,3 +17,8 @@ output "cloudfront_distribution_hostname" { description = "The hostname of the CloudFront Distribution (use for DNS CNAME)." value = "${aws_cloudfront_distribution.website.domain_name}" } + +output "cloudfront_zone_id" { + description = "The Zone ID of the CloudFront Distribution (use for DNS Alias)." + value = "${aws_cloudfront_distribution.website.hosted_zone_id}" +}