From 5fa005775416b303c2594ee348e5e88b5b6e395f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Sat, 30 Mar 2024 22:29:29 +0100 Subject: [PATCH] add log analytics ws to terraform --- infra/appinsights.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infra/appinsights.tf b/infra/appinsights.tf index b5b17a2..c48c4a8 100644 --- a/infra/appinsights.tf +++ b/infra/appinsights.tf @@ -1,7 +1,16 @@ +resource "azurerm_log_analytics_workspace" "law" { + name = "pontozo-law-tf" + location = azurerm_resource_group.tf-rg.location + resource_group_name = azurerm_resource_group.tf-rg.name + sku = "PerGB2018" + retention_in_days = 30 +} + resource "azurerm_application_insights" "appinsights" { name = "pontozo-insights-tf" location = azurerm_resource_group.tf-rg.location resource_group_name = azurerm_resource_group.tf-rg.name + workspace_id = azurerm_log_analytics_workspace.law.id application_type = "web" }