diff --git a/modules/eks-monitoring/locals.tf b/modules/eks-monitoring/locals.tf index 7fcb60db..765d9846 100644 --- a/modules/eks-monitoring/locals.tf +++ b/modules/eks-monitoring/locals.tf @@ -80,7 +80,7 @@ locals { nginx_pattern_config = { # Merge input variable with defaults and rebuild with non-null values - for k, v in merge(local.nginx_pattern_config_defaults, var.nginx_config) : k => coalesce(v, local.nginx_pattern_config_defaults[k]) + for k, v in merge(local.nginx_pattern_config_defaults, var.nginx_config) : k => v != null ? v :local.nginx_pattern_config_defaults[k] } istio_pattern_config = {