From 693d3da662ce43030bef85b703a00803054514b6 Mon Sep 17 00:00:00 2001 From: Annie Ku Date: Wed, 20 Nov 2024 10:49:47 -0800 Subject: [PATCH] fix: add the source & target domains to tags, make comment shorter (#682) * fix: use right if else * fix: shorten comment --- aws-cloudfront-domain-redirect/main.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aws-cloudfront-domain-redirect/main.tf b/aws-cloudfront-domain-redirect/main.tf index 43250fb6..fb17f0ed 100644 --- a/aws-cloudfront-domain-redirect/main.tf +++ b/aws-cloudfront-domain-redirect/main.tf @@ -5,6 +5,8 @@ locals { service = var.service project = var.project managedBy = "terraform" + source_domain = var.source_domain + target_domain = var.target_domain } } @@ -38,7 +40,7 @@ module "cert" { resource "aws_cloudfront_distribution" "cf" { enabled = true - comment = "Redirect requests from ${var.source_domain} to ${var.target_domain}." + comment = "Redirect requests--check the tags for the source & redirect domains." aliases = [var.source_domain] viewer_certificate {