Skip to content

Commit

Permalink
add billing reader role to api identity
Browse files Browse the repository at this point in the history
  • Loading branch information
guybartal committed Jun 8, 2022
1 parent 6a03655 commit 363904a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/core/terraform/identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ resource "azurerm_role_assignment" "vm_contributor" {
principal_id = azurerm_user_assigned_identity.id.principal_id
}

resource "azurerm_role_assignment" "billing_reader" {
scope = data.azurerm_subscription.current.id
role_definition_name = "Billing Reader"
principal_id = azurerm_user_assigned_identity.id.principal_id
}

resource "azurerm_role_assignment" "acrpull_role" {
scope = data.azurerm_container_registry.mgmt_acr.id
role_definition_name = "AcrPull"
Expand All @@ -37,3 +43,4 @@ resource "azurerm_role_assignment" "cosmos_contributor" {
role_definition_name = "Contributor"
principal_id = azurerm_user_assigned_identity.id.principal_id
}

0 comments on commit 363904a

Please sign in to comment.