Skip to content

Commit

Permalink
fix azapi_resource container_app_onboarding_ms id
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf committed Nov 7, 2023
1 parent ebb2525 commit 8314fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .container_apps/onboarding-ms/container_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data "azurerm_container_app_environment" "container_app_environment" {
name = "${local.project}-cae"
}

resource "azapi_resource" "container_app" {
resource "azapi_resource" "container_app_onboarding_ms" {
type = "Microsoft.App/containerApps@2023-05-01"
name = "${local.project}-${local.app_name}-ca"
location = data.azurerm_resource_group.resource_group_app.location
Expand Down Expand Up @@ -78,7 +78,7 @@ resource "azapi_resource" "container_app" {
resource "azurerm_key_vault_access_policy" "keyvault_containerapp_access_policy" {
key_vault_id = data.azurerm_key_vault.key_vault.id
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = azapi_resource.container_app_onboarding.identity[0].principal_id
object_id = azapi_resource.container_app_onboarding_ms.identity[0].principal_id

secret_permissions = [
"Get",
Expand Down
4 changes: 2 additions & 2 deletions .container_apps/onboarding-ms/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
output "container_app_resource_group_name" {
value = azapi_resource.container_app_onboarding.location
value = azapi_resource.container_app_onboarding_ms.location
}

output "container_app_environment_name" {
value = data.azurerm_container_app_environment.container_app_environment.name
}

output "container_app_name" {
value = azapi_resource.container_app_onboarding.name
value = azapi_resource.container_app_onboarding_ms.name
}

0 comments on commit 8314fd5

Please sign in to comment.