Skip to content

Commit

Permalink
Merge branch 'main' into marrobi/issue2943
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirkamara authored Dec 8, 2022
2 parents b205967 + ca4abf6 commit 5b21b08
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ BUG FIXES:
* Private endpoints for AppInsights are now provisioning successfully and consistently ([#2841](https://github.com/microsoft/AzureTRE/pull/2841))
* Enable upgrade step of base workspace ([#2899](https://github.com/microsoft/AzureTRE/pull/2899))
* Fix get shared service by template name to filter by active service only ([#2947](https://github.com/microsoft/AzureTRE/pull/2947))
* Fix untagged cost reporting reader role assignment ([#2951](https://github.com/microsoft/AzureTRE/pull/2951))

COMPONENTS:

Expand Down
7 changes: 7 additions & 0 deletions templates/core/terraform/api-identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ resource "azurerm_user_assigned_identity" "id" {
lifecycle { ignore_changes = [tags] }
}

# Needed to include untagged resources in cost reporting #2933
resource "azurerm_role_assignment" "resource_group_reader" {
scope = azurerm_resource_group.core.id
role_definition_name = "Reader"
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"
Expand Down
2 changes: 1 addition & 1 deletion templates/core/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.44"
__version__ = "0.4.45"
7 changes: 7 additions & 0 deletions templates/workspaces/base/terraform/api-permissions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ resource "azurerm_role_assignment" "api_vm_contributor" {
role_definition_name = "Virtual Machine Contributor"
principal_id = data.azurerm_user_assigned_identity.api_id.principal_id
}

# Needed to include untagged resources in cost reporting #2933
resource "azurerm_role_assignment" "api_reader" {
scope = azurerm_resource_group.ws.id
role_definition_name = "Reader"
principal_id = data.azurerm_user_assigned_identity.api_id.principal_id
}

0 comments on commit 5b21b08

Please sign in to comment.