Skip to content

data-platform-hq/terraform-azurerm-log-analytics-ws

Repository files navigation

Azure Log Analytics Workspace Terraform module

Terraform module for creation Azure Log Analytics Workspace

Usage

Requirements

Name Version
terraform >= 1.0.0
azurerm >= 4.0.1

Providers

Name Version
azurerm >= 4.0.1

Modules

No modules.

Resources

Name Type
azurerm_log_analytics_workspace.this resource

Inputs

Name Description Type Default Required
custom_workspace_name Specifies the name of the Log Analytics Workspace string null no
env Environment name string n/a yes
location Specifies the supported Azure location where the resource exists string n/a yes
project Project name string n/a yes
resource_group The name of the resource group in which the Log Analytics workspace is created string n/a yes
retention_in_days The workspace data retention in days number 30 no
sku Log Analytics Workspace sku string "PerGB2018" no
tags A mapping of tags to assign to the resource map(string) {} no

Outputs

Name Description
id The Log Analytics Resource ID
name The Log Analytics Workspace Name
name_to_id_map Map of Log Analytics Workspace Name to Id
primary_shared_key The Primary shared key for the Log Analytics Workspace
workspace_id The Log Analytics Workspace ID

License

Apache 2 Licensed. For more information please see LICENSE