aztfmod / terraform-azurerm-caf-log-analytics

Azure Monitor - Log analytics module for Cloud Adoption Framework for Azure landing zones

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

READ ME

Thanks for your interest in Cloud Adoption Framework for Azure landing zones on Terraform. This module is now deprecated and no longer maintained.

As part of Cloud Adoption Framework landing zones for Terraform, we have migrated to a single module model, which you can find here: https://github.com/aztfmod/terraform-azurerm-caf and on the Terraform registry: https://registry.terraform.io/modules/aztfmod/caf/azurerm

In Terraform 0.13 you can now call directly submodules easily with the following syntax:

module "caf_firewall" {
  source  = "aztfmod/caf/azurerm//modules/networking/firewall"
  version = "0.4.18"
  # insert the 9 required variables here
}

VScodespaces Gitter

Deploys Azure Monitor Log Analytics

Creates the log analytics and monitoring solutions.

Reference the module to a specific version (recommended):

module "log_analytics" {
    source  = "aztfmod/caf-log-analytics/azurerm"
    version = "0.x.y"

    name                              = var.name
    solution_plan_map                 = var.solutions
    resource_group_name               = var.rg
    prefix                            = var.prefix
    location                          = var.location
    tags                              = var.tags
    
}

Requirements

No requirements.

Providers

Name Version
azurecaf n/a
azurerm n/a

Inputs

Name Description Type Default Required
convention (Required) Naming convention to be used (check at the naming convention module for possible values). string n/a yes
location (Required) Location of the resources any n/a yes
max_length (Optional) You can speficy a maximum length to the name of the resource string "" no
name (Required) Log Analytics workspace name any n/a yes
postfix (Optional) You can use a postfix to the name of the resource string "" no
prefix (Optional) You can use a prefix to the name of the resource string "" no
resource_group_name (Required) Resource group name any n/a yes
retention_in_days (Optional) The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. string "" no
solution_plan_map (Optional) Map structure containing the list of solutions to be enabled. map(any) {} no
tags (Required) tagging for the log analytics workspace any n/a yes

Outputs

Name Description
id Output the object ID
name Output the object name
object Output the full object

Parameters

solution_plan_map

(Optional) Map of tags for the deployment

variable "solution_plan_map" {
  description = "(Optional) Map structure containing the list of solutions to be enabled."
  type = map(any)
}

Example

solution_plan_map = {
    ADAssessment = {
        "publisher" = "Microsoft"
        "product"   = "OMSGallery/ADAssessment"
    },
    ADReplication = {
        "publisher" = "Microsoft"
        "product"   = "OMSGallery/ADReplication"
    },
    AgentHealthAssessment = {
        "publisher" = "Microsoft"
        "product"   = "OMSGallery/AgentHealthAssessment"
    },
    DnsAnalytics = {
        "publisher" = "Microsoft"
        "product"   = "OMSGallery/DnsAnalytics"
    },
    KeyVaultAnalytics = {
        "publisher" = "Microsoft"
        "product"   = "OMSGallery/KeyVaultAnalytics"
    }
}

About

Azure Monitor - Log analytics module for Cloud Adoption Framework for Azure landing zones

License:MIT License


Languages

Language:HCL 100.0%