From c6d0c2c8f8170205ff8273688da5482cb61738a8 Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:21:04 +0100 Subject: [PATCH] Fix: Invalid list reference (#413) --- container-app.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container-app.tf b/container-app.tf index c3b9c9ca..46e9080a 100644 --- a/container-app.tf +++ b/container-app.tf @@ -81,11 +81,11 @@ resource "azurerm_container_app" "container_apps" { } dynamic "identity" { - for_each = toset(local.container_app_identity_ids) + for_each = length(local.container_app_identity_ids) > 0 ? [1] : [] content { type = "UserAssigned" - identity_ids = identity.value + identity_ids = local.container_app_identity_ids } }