From f336a9854b32ea444609540cf250c6ee640e0bc3 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Mon, 1 Dec 2025 08:52:01 -0600 Subject: [PATCH] fix: Avoid adding a `null` value to `concat()` function for cache behaviors local variable --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 8fc52b3..bd9b08a 100644 --- a/main.tf +++ b/main.tf @@ -535,7 +535,7 @@ resource "aws_cloudfront_monitoring_subscription" "this" { ################################################################################ locals { - cache_behaviors = concat([var.default_cache_behavior], var.ordered_cache_behavior) + cache_behaviors = var.ordered_cache_behavior != null ? concat([var.default_cache_behavior], var.ordered_cache_behavior) : [var.default_cache_behavior] } data "aws_cloudfront_cache_policy" "this" {