Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbra committed Mar 11, 2024
1 parent 5ed1e5e commit fc2a635
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test-infra/terraform/init/managed-identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ resource "azurerm_role_assignment" "terraform-state-contributor" {
#role_definition_name = "Contributor"
role_definition_name = "Storage Blob Data Owner"
principal_id = azurerm_user_assigned_identity.integration-tests-mi.principal_id
}
}

resource "azurerm_role_assignment" "terraform-state-storage-account-contributor" {
scope = data.azurerm_storage_account.grateconfig.id
role_definition_name = "Storage Account Contributor"
principal_id = azurerm_user_assigned_identity.integration-tests-mi.principal_id
}
5 changes: 5 additions & 0 deletions test-infra/terraform/init/tfstate-storage-container.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ resource "azurerm_storage_container" "grate-tests-setup" {
name = "grate-tests-setup"
storage_account_name = "grateconfig"
}

data "azurerm_storage_account" "grateconfig" {
name = "grateconfig"
resource_group_name = "grate-tests-infra"
}

0 comments on commit fc2a635

Please sign in to comment.