-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
32 lines (30 loc) · 1.16 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
variable "application_insights" {
type = any
default = {}
description = "resource definition, default settings are defined within locals and merged with var settings"
}
locals {
default = {
# resource definition
application_insights = {
name = ""
daily_data_cap_in_gb = null
daily_data_cap_notifications_disabled = null
retention_in_days = 30
sampling_percentage = null
disable_ip_masking = false
workspace_id = null
local_authentication_disabled = false
internet_ingestion_enabled = false
internet_query_enabled = false
force_customer_storage_for_profiler = false
tags = {}
}
}
# compare and merge custom and default values
# merge all custom and default values
application_insights = {
for application_insights in keys(var.application_insights) :
application_insights => merge(local.default.application_insights, var.application_insights[application_insights])
}
}