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 : "" }