diff --git a/infrastructure/modules/infra/main.tf b/infrastructure/modules/infra/main.tf index 2b24e2d0e..1c6207b69 100644 --- a/infrastructure/modules/infra/main.tf +++ b/infrastructure/modules/infra/main.tf @@ -67,3 +67,40 @@ module "container-app-environment" { vnet_integration_subnet_id = module.container_app_subnet.id private_dns_zone_rg_name = "rg-hub-${var.hub}-uks-private-dns-zones" } + +module "app_insights_audit" { + source = "../dtos-devops-templates/infrastructure/modules/app-insights" + + name = module.shared_config.names.app-insights + location = var.region + resource_group_name = azurerm_resource_group.main.name + appinsights_type = "web" + + log_analytics_workspace_id = module.log_analytics_workspace_audit.id +} + +module "private_link_scoped_service_law" { + source = "../dtos-devops-templates/infrastructure/modules/private-link-scoped-service" + + providers = { + azurerm = azurerm.hub + } + + name = "pls-${var.app_short_name}-${var.environment}-law" + resource_group_name = "rg-hub-${var.hub}-uks-hub-private-endpoints" + linked_resource_id = module.log_analytics_workspace_audit.id + scope_name = "ampls-${var.hub}hub" +} + +module "private_link_scoped_service_app_insights" { + source = "../dtos-devops-templates/infrastructure/modules/private-link-scoped-service" + + providers = { + azurerm = azurerm.hub + } + + name = "pls-${var.app_short_name}-${var.environment}-appinsights" + resource_group_name = "rg-hub-${var.hub}-uks-hub-private-endpoints" + linked_resource_id = module.app_insights_audit.id + scope_name = "ampls-${var.hub}hub" +}