Skip to content

Commit

Permalink
update template container app and api template
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes committed Oct 8, 2024
1 parent 6bb666f commit 4e9816a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions infra/modules/container_app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,8 @@ resource "azurerm_container_app" "app" {
workload_profile_name = "basic"

identity {
type = "UserAssigned"
identity_ids = [
azurerm_user_assigned_identity.app.id,
data.azurerm_user_assigned_identity.postgres_admin.id
]
type = "UserAssigned"
identity_ids = [azurerm_user_assigned_identity.app.id]
}

ingress {
Expand All @@ -127,10 +124,6 @@ resource "azurerm_container_app" "app" {
max_replicas = var.max_replicas

container {
env {
name = "EntraId__Identities__PostgresAdmin__ClientId"
value = data.azurerm_user_assigned_identity.postgres_admin.client_id
}
env {
name = "EntraId__Identities__Service__ClientId"
value = azurerm_user_assigned_identity.app.client_id
Expand Down
2 changes: 1 addition & 1 deletion src/apps/Altinn.Authorization.DeployApi/deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data "azurerm_user_assigned_identity" "application_admin" {
module "app" {
source = "../../../../infra/modules/container_app_api"

user_assigned_identities = [data.azurerm_user_assigned_identity.application_admin.principal_id]
user_assigned_identities = [data.azurerm_user_assigned_identity.application_admin.id]

instance = var.instance
environment = var.environment
Expand Down

0 comments on commit 4e9816a

Please sign in to comment.