Skip to content

Commit

Permalink
Merge branch 'main' into fix_user_man_id
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Oct 19, 2024
2 parents 3901c2c + 5006a93 commit 6b71e5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/terraform/container_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,14 @@ resource "azurerm_container_app" "auth" {
}

env {
name = "IDENTITY_CLIENT_ID"
name = "USER_MANAGED_IDENTITY_CLIENT_ID"
secret_name = "identity-client-id"
}

env {
name = "USER_MANAGED_IDENTITY_ENDPOINT"
value = var.user_managed_identity_endpoint
}
}

max_replicas = var.mil_auth_max_replicas
Expand Down
6 changes: 6 additions & 0 deletions src/main/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ variable "tags" {
type = map(any)
}

variable "user_managed_identity_endpoint" {
type = string
default = "http://169.254.169.254/metadata/identity/oauth2/token"
description = "Endpoint to get the access token to use to access to Azure resources when User Managed Identity is in use."
}

# ------------------------------------------------------------------------------
# Specific variables definition.
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 6b71e5c

Please sign in to comment.