forked from devlinduldulao/sample-terraform-task-miljo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
23 lines (20 loc) · 691 Bytes
/
main.tf
File metadata and controls
23 lines (20 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
resource "azurerm_resource_group" "rg" {
name = var.resource_group_name
location = var.resource_group_location
}
resource "random_string" "name" {
length = 8
special = false
number = true
lower = false
upper = false
}
module "log_analytics_workspace" {
source = "./platform/production"
rg_name = azurerm_resource_group.rg.name
rg_location = azurerm_resource_group.rg.location
name = join("", ["p-mgt", random_string.name.result, "-log"])
sku = var.log_analytics_workspace_sku
retention_in_days = var.log_analytics_workspace_retention_in_days
daily_quota_gb = var.log_analytics_workspace_daily_quota_gb
}