generated from libre-devops/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
15 lines (15 loc) · 1.04 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
resource "azurerm_log_analytics_workspace" "law" {
name = try(var.law_name, null)
location = var.location
resource_group_name = var.rg_name
allow_resource_only_permissions = try(var.allow_resource_only_permissions, true)
local_authentication_disabled = try(var.local_authentication_disabled, true)
cmk_for_query_forced = try(var.cmk_for_query_forced, false, null)
sku = title(try(var.law_sku, null))
retention_in_days = try(var.retention_in_days, null)
reservation_capacity_in_gb_per_day = var.law_sku == "CapacityReservation" ? var.reservation_capacity_in_gb_per_day : null
daily_quota_gb = title(var.law_sku) == "Free" ? "0.5" : try(var.daily_quota_gb, null)
internet_ingestion_enabled = try(var.internet_ingestion_enabled, null)
internet_query_enabled = try(var.internet_query_enabled, null)
tags = try(var.tags, null)
}