зеркало из https://github.com/microsoft/bedrock.git
Родитель
b2049efa6f
Коммит
5a204b1a9c
|
@ -2,8 +2,10 @@ data "azuread_service_principal" "flexvol" {
|
|||
application_id = "${var.service_principal_id}"
|
||||
}
|
||||
|
||||
data "azurerm_client_config" "current" {}
|
||||
|
||||
resource "azurerm_role_assignment" "flexvol" {
|
||||
count = "${var.enable_flexvol? 1 : 0}"
|
||||
count = var.enable_flexvol && var.service_principal_id != data.azurerm_client_config.current.client_id ? 1 : 0
|
||||
|
||||
principal_id = "${data.azuread_service_principal.flexvol.id}"
|
||||
role_definition_name = "${var.flexvol_role_assignment_role}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче