Skip to content

Commit 0bbff3e

Browse files
committed
return reader permission
1 parent 0625909 commit 0bbff3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

infra/main.security.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ resource "azurerm_role_assignment" "script_main_storage_blob_owner" {
5555
role_definition_name = "Storage Blob Data Contributor"
5656
}
5757

58+
resource "azurerm_role_assignment" "script_main_storage_reader" {
59+
principal_id = azurerm_user_assigned_identity.script_identity.principal_id
60+
scope = module.storage_account_and_container.resource_id
61+
role_definition_name = "Reader"
62+
}
63+
5864
# --- Deployment Container Storage Account ---
5965
resource "azurerm_role_assignment" "script_deployment_container_blob_contributor" {
6066
principal_id = azurerm_user_assigned_identity.script_identity.principal_id

0 commit comments

Comments
 (0)