An open API service indexing awesome lists of open source software.

https://github.com/telekom-mms/terraform-azurerm-log-analytics

A Terraform module that manages the log analytics resources from the azurerm provider.
https://github.com/telekom-mms/terraform-azurerm-log-analytics

azure azure-log-analytics terraform terraform-module

Last synced: 3 months ago
JSON representation

A Terraform module that manages the log analytics resources from the azurerm provider.

Awesome Lists containing this project

README

        

# log_analytics

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. -->_

## Requirements

| Name | Version |
|------|---------|
| terraform | >=1.5 |
| azurerm | >=3.79.0, <4.0 |

## Providers

| Name | Version |
|------|---------|
| azurerm | >=3.79.0, <4.0 |

## Resources

| Name | Type |
|------|------|
| azurerm_log_analytics_solution.log_analytics_solution | resource |
| azurerm_log_analytics_workspace.log_analytics_workspace | resource |

## Inputs

| 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 |

## Outputs

| 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 |

## Examples

Minimal configuration to install the desired resources with the module

```hcl
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

```hcl
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"
}
}
}
}
```