From 75d90c31f266c0d3bc2f49b4d3423e301977dc7b Mon Sep 17 00:00:00 2001 From: cmendible <266546+cmendible@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:49:38 +0100 Subject: [PATCH] Fix access to output_content in outputs.tf --- infra/modules/cog/outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/modules/cog/outputs.tf b/infra/modules/cog/outputs.tf index f753c5f..8fd4545 100644 --- a/infra/modules/cog/outputs.tf +++ b/infra/modules/cog/outputs.tf @@ -19,5 +19,5 @@ output "speech_key" { } output "bing_key" { - value = var.deploy_bing ? jsondecode(azurerm_resource_group_template_deployment.main.output_content).accessKeys.value.key1 : "" + value = var.deploy_bing ? jsondecode(azurerm_resource_group_template_deployment.main[0].output_content).accessKeys.value.key1 : "" }