Tuesday, December 21, 2021

Azure kubernetes terraform - log analytics workspace

log-analytics-workspace.tf
resource "azurerm_log_analytics_workspace" "insights" {
  name = "logs-${randome_pet.aksrandom.id}"
  location = azurerm_resource_group.aks_rg.location
  resource_group_name = azurerm_resource_group.aks_rg.name
  retention_in_days = 30
}

No comments:

Post a Comment