Skip to content

Commit

Permalink
fix: add the source & target domains to tags, make comment shorter (#682
Browse files Browse the repository at this point in the history
)

* fix: use right if else

* fix: shorten comment
  • Loading branch information
kuannie1 authored Nov 20, 2024
1 parent 0aa79f5 commit 693d3da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws-cloudfront-domain-redirect/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ locals {
service = var.service
project = var.project
managedBy = "terraform"
source_domain = var.source_domain
target_domain = var.target_domain
}
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 693d3da

Please sign in to comment.