Skip to content

Commit

Permalink
update mhsm role acc test
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Nov 8, 2023
1 parent 72f6535 commit 62e4a02
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ locals {
}
data "azurerm_key_vault_managed_hardware_security_module_role_definition" "test" {
name = local.roleTestName
name = azurerm_key_vault_managed_hardware_security_module_role_definition.test.name
vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri
}
Expand Down Expand Up @@ -74,9 +74,9 @@ data "azurerm_key_vault_managed_hardware_security_module_role_definition" "offic
resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "officer" {
vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri
name = local.assignmentOfficerName
scope = "${data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.scope}"
role_definition_id = "${data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.resource_manager_id}"
principal_id = "${data.azurerm_client_config.current.object_id}"
scope = data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.scope
role_definition_id = data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.resource_manager_id
principal_id = data.azurerm_client_config.current.object_id
}
`, roleDef)
}

0 comments on commit 62e4a02

Please sign in to comment.