Skip to content

Commit

Permalink
fix: correct caching policy name
Browse files Browse the repository at this point in the history
  • Loading branch information
dsueltenfuss committed Feb 20, 2022
1 parent 8e2a98e commit 1904613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "aws_cloudfront_distribution" "cloudfront" {
}

resource "aws_cloudfront_cache_policy" "cloudfront_cache_policy" {
name = join("", [var.source_website, "-CachingOptimized"])
name = join("", [replace(var.source_website, ".", "-"), "-CachingOptimized"])
min_ttl = 1
comment = "Default policy when CF compression is enabled"
parameters_in_cache_key_and_forwarded_to_origin {
Expand Down

0 comments on commit 1904613

Please sign in to comment.