File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1+ data "azuread_client_config" "current" {}
2+
13# Add an application, a service principal, and a password for the service principal
24# This single service principal have access to:
35# - Metaflow's storage container
68# E.g. an end user needs to be able to access Metaflow storage AND submit jobs to AKS (possibly)
79resource "azuread_application" "service_principal_application" {
810 display_name = var. service_principal_name
11+ owners = [data . azuread_client_config . current . object_id ]
912}
1013
1114resource "azuread_service_principal" "service_principal" {
1215 application_id = azuread_application. service_principal_application . application_id
16+ owners = [data . azuread_client_config . current . object_id ]
1317}
1418
1519# This will be used as a AZURE_CLIENT_SECRET in Metaflow's AKS workloads
You can’t perform that action at this time.
0 commit comments