This module manages the hashicorp/azurerm log analytics resources.
For more information see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs > log analytics
<-- This file is autogenerated, please do not change. -->
Name |
Version |
terraform |
>=1.5 |
azurerm |
>=3.79.0, <4.0 |
Name |
Version |
azurerm |
>=3.79.0, <4.0 |
Name |
Type |
azurerm_log_analytics_solution.log_analytics_solution |
resource |
azurerm_log_analytics_workspace.log_analytics_workspace |
resource |
Name |
Description |
Type |
Default |
Required |
log_analytics_solution |
resource definition, default settings are defined within locals and merged with var settings |
any |
{} |
no |
log_analytics_workspace |
resource definition, default settings are defined within locals and merged with var settings |
any |
{} |
no |
Name |
Description |
log_analytics_solution |
Outputs all attributes of resource_type. |
log_analytics_workspace |
Outputs all attributes of resource_type. |
variables |
Displays all configurable variables passed by the module. default = predefined values per module. merged = result of merging the default values and custom values passed to the module |
Minimal configuration to install the desired resources with the module
module "log_analytics" {
source = "registry.terraform.io/telekom-mms/log-analytics/azurerm"
log_analytics_workspace = {
logmms = {
location = "westeurope"
resource_group_name = "rg-mms-github"
}
}
log_analytics_solution = {
container = {
solution_name = "ContainerInsights"
resource_group_name = "rg-mms-github"
location = "westeurope"
workspace_resource_id = module.log_analytics.log_analytics_workspace["logmms"].id
workspace_name = module.log_analytics.log_analytics_workspace["logmms"].name
plan = {
product = "OMSGallery/ContainerInsights"
}
}
}
}
Advanced configuration to install the desired resources with the module
module "log_analytics" {
source = "registry.terraform.io/telekom-mms/log-analytics/azurerm"
log_analytics_workspace = {
logmms = {
location = "westeurope"
resource_group_name = "rg-mms-github"
retention_in_days = 60
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
log_analytics_solution = {
container = {
solution_name = "ContainerInsights"
resource_group_name = "rg-mms-github"
location = "westeurope"
workspace_resource_id = module.log_analytics.log_analytics_workspace["logmms"].id
workspace_name = module.log_analytics.log_analytics_workspace["logmms"].name
plan = {
product = "OMSGallery/ContainerInsights"
}
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
}