We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5015aae commit 92d47e7Copy full SHA for 92d47e7
core/terraform/airlock/identity.tf
@@ -52,3 +52,11 @@ resource "azurerm_role_assignment" "api_sa_data_contributor" {
52
role_definition_name = "Storage Blob Data Contributor"
53
principal_id = var.api_principal_id
54
}
55
+
56
+# Permissions needed for the Function Host to work correctly.
57
+resource "azurerm_role_assignment" "function_host_storage" {
58
+ for_each = toset(["Storage Account Contributor", "Storage Blob Data Owner", "Storage Queue Data Contributor"])
59
+ scope = azurerm_storage_account.sa_airlock_processor_func_app.id
60
+ role_definition_name = each.value
61
+ principal_id = azurerm_user_assigned_identity.airlock_id.principal_id
62
+}
0 commit comments