From 4b143f29349914b1f2f0005208d367256d2b3ee8 Mon Sep 17 00:00:00 2001 From: githubjianli <51385385+githubjianli@users.noreply.github.com> Date: Fri, 5 Jan 2024 09:44:47 -0800 Subject: [PATCH] test --- common.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.tf b/common.tf index 2e484c3..829107e 100644 --- a/common.tf +++ b/common.tf @@ -61,7 +61,7 @@ data "aws_secretsmanager_secret_version" "datadog_key" { } locals { - datadog_keys = jsondecode(data.aws_secretsmanager_secret_version.datadog_key[0].secret_string) + datadog_keys = length(data.aws_secretsmanager_secret.datadog_key) > 0 ? {} : jsondecode(data.aws_secretsmanager_secret_version.datadog_key[0].secret_string) } provider "datadog" {