Skip to content

Commit

Permalink
misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo committed Apr 25, 2024
1 parent b3b7880 commit 890e0aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion terraform/subscriptions/modules/config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ output "private_dns_zones_names" {
]
}

output "radix_log_api_mi" {
output "radix_log_api_mi_name" {
value = "radix-id-log-api-${local.config.environment}"
}
4 changes: 3 additions & 1 deletion terraform/subscriptions/modules/userassignedidentity/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ resource "azurerm_user_assigned_identity" "userassignedidentity" {
name = var.name
location = var.location
resource_group_name = var.resource_group_name
tags = var.tags
tags = {
IaC = "terraform"
}
}

resource "azurerm_role_assignment" "this" {
Expand Down
10 changes: 3 additions & 7 deletions terraform/subscriptions/s941/dev/log-api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ data "azurerm_log_analytics_workspace" "this" {
resource_group_name = "Logs-Dev"
}

data "azurerm_resource_group" "resourcegroup" {
name = module.config.common_resource_group
}

module "log-api-mi" {
source = "../../../modules/userassignedidentity"
name = module.config.radix_log_api_mi
resource_group_name = data.azurerm_resource_group.resourcegroup.name
location = data.azurerm_resource_group.resourcegroup.location
name = module.config.radix_log_api_mi_name
resource_group_name = module.config.common_resource_group
location = module.config.location
roleassignments = {
role = {
role = "Log Analytics Reader"
Expand Down
4 changes: 2 additions & 2 deletions terraform/subscriptions/s941/dev/post-clusters/log-api.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "azurerm_user_assigned_identity" "log-api-mi" {
resource_group_name = module.config.radix_log_api_mi.resourcegroup
name = module.config.radix_log_api_mi.name
resource_group_name = module.config.common_resource_group
name = module.config.radix_log_api_mi_name
}

resource "azurerm_federated_identity_credential" "log-api-mi-prod" {
Expand Down

0 comments on commit 890e0aa

Please sign in to comment.