From 982dbc2808bf542444315c32c00f3659197b4d83 Mon Sep 17 00:00:00 2001 From: githubjianli <51385385+githubjianli@users.noreply.github.com> Date: Fri, 5 Jan 2024 09:55:13 -0800 Subject: [PATCH] change conditional expression --- common.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.tf b/common.tf index 3087ac8..92cbec9 100644 --- a/common.tf +++ b/common.tf @@ -61,7 +61,7 @@ data "aws_secretsmanager_secret_version" "datadog_key" { } locals { - datadog_keys = length(var.var.datadog_key_secret_name) > 0 ? {} : jsondecode(data.aws_secretsmanager_secret_version.datadog_key[0].secret_string) + datadog_keys = length(var.var.datadog_key_secret_name) > 0 ? [] : jsondecode(data.aws_secretsmanager_secret_version.datadog_key[0].secret_string) } provider "datadog" {