This commit is contained in:
Tamir Kamara 2025-01-19 12:46:04 +00:00
Родитель 5015aaeb57
Коммит 92d47e787f
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -52,3 +52,11 @@ resource "azurerm_role_assignment" "api_sa_data_contributor" {
role_definition_name = "Storage Blob Data Contributor"
principal_id = var.api_principal_id
}
# Permissions needed for the Function Host to work correctly.
resource "azurerm_role_assignment" "function_host_storage" {
for_each = toset(["Storage Account Contributor", "Storage Blob Data Owner", "Storage Queue Data Contributor"])
scope = azurerm_storage_account.sa_airlock_processor_func_app.id
role_definition_name = each.value
principal_id = azurerm_user_assigned_identity.airlock_id.principal_id
}