new folder for anf option, edits to variables

This commit is contained in:
Jen Sheerin
2022-02-06 23:51:32 -05:00
parent 95c7436033
commit b49da51665
18 changed files with 730 additions and 69 deletions

View File

@ -0,0 +1,14 @@
resource "azurerm_resource_group" "log" {
name = "${var.shared}-resources"
location = var.deploy_location
}
# Creates Log Anaylytics Workspace
# https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/log_analytics_workspace
resource "azurerm_log_analytics_workspace" "law" {
name = "log${random_string.random.id}"
location = azurerm_resource_group.log.location
resource_group_name = azurerm_resource_group.log.name
sku = "PerGB2018"
retention_in_days = 30
}