Skip to content

Commit

Permalink
fix: make the cloudfront comment static so we won't reach length erro…
Browse files Browse the repository at this point in the history
…rs (#3417)
  • Loading branch information
kuannie1 authored Jul 10, 2024
1 parent 0549625 commit 5bf832d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions terraform/modules/happy-cloudfront/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ module "cert" {
}
}

locals {
domains = join(",", [for index, value in var.origins : "${value.domain_name}${value.path_pattern}"])
}

resource "aws_cloudfront_distribution" "this" {
enabled = true
comment = "Forward requests from ${var.frontend.domain_name} to ${local.domains}."
comment = "Forward requests from alias to the origins"
price_class = var.price_class
aliases = [var.frontend.domain_name]

Expand Down

0 comments on commit 5bf832d

Please sign in to comment.