From 6378744bb9919e97f85bfd3810d792c09337b495 Mon Sep 17 00:00:00 2001 From: chrisyoungbrighte <128448021+chrisyoungbrighte@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:12:55 +1100 Subject: [PATCH] feat: add cloudfront_distribution_id to outputs It is useful to know the cloudfront distribution ID for creating invalidations during deployment --- _outputs.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_outputs.tf b/_outputs.tf index afd1548..6123bf5 100644 --- a/_outputs.tf +++ b/_outputs.tf @@ -2,3 +2,8 @@ output "cf_domain_name" { description = "CloudFront Domain Name" value = var.module_enabled ? aws_cloudfront_distribution.default[0].domain_name : null } + +output "cloudfront_distribution_id" { + description = "CloudFront Distribution ID" + value = var.module_enabled ? aws_cloudfront_distribution.default[0].id : null +}