diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1953b..5e6a9f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,26 +1,34 @@ # Changelog -## [2.0.0](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/tree/2.0.0) (2022-07-25) +## [3.0.0](https://github.com/telekom-mms/terraform-azurerm-log-analytics/tree/3.0.0) (2023-11-07) -[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/compare/1.0.0...2.0.0) +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-log-analytics/compare/2.0.0...3.0.0) + +**Closed issues:** + +- Dependency Dashboard [\#4](https://github.com/telekom-mms/terraform-azurerm-log-analytics/issues/4) + +## [2.0.0](https://github.com/telekom-mms/terraform-azurerm-log-analytics/tree/2.0.0) (2022-07-25) + +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-log-analytics/compare/1.0.0...2.0.0) **Merged pull requests:** -- add more output attribute [\#10](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/10) ([michaelamattes](https://github.com/michaelamattes)) -- update for azurerm\_3 [\#9](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/9) ([michaelamattes](https://github.com/michaelamattes)) -- chore\(deps\): update hashicorp/setup-terraform action to v2 [\#8](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/8) ([renovate[bot]](https://github.com/apps/renovate)) -- chore\(deps\): update creyd/prettier\_action action to v4 [\#7](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/7) ([renovate[bot]](https://github.com/apps/renovate)) -- chore\(deps\): update actions/checkout action [\#6](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/6) ([renovate[bot]](https://github.com/apps/renovate)) -- chore\(deps\): update github-actions-x/commit action to v2.9 [\#5](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/5) ([renovate[bot]](https://github.com/apps/renovate)) -- add renovate config [\#1](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/pull/1) ([michaelamattes](https://github.com/michaelamattes)) +- add more output attribute [\#10](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/10) ([michaelamattes](https://github.com/michaelamattes)) +- update for azurerm\_3 [\#9](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/9) ([michaelamattes](https://github.com/michaelamattes)) +- chore\(deps\): update hashicorp/setup-terraform action to v2 [\#8](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/8) ([renovate[bot]](https://github.com/apps/renovate)) +- chore\(deps\): update creyd/prettier\_action action to v4 [\#7](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/7) ([renovate[bot]](https://github.com/apps/renovate)) +- chore\(deps\): update actions/checkout action [\#6](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/6) ([renovate[bot]](https://github.com/apps/renovate)) +- chore\(deps\): update github-actions-x/commit action to v2.9 [\#5](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/5) ([renovate[bot]](https://github.com/apps/renovate)) +- add renovate config [\#1](https://github.com/telekom-mms/terraform-azurerm-log-analytics/pull/1) ([michaelamattes](https://github.com/michaelamattes)) -## [1.0.0](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/tree/1.0.0) (2022-02-17) +## [1.0.0](https://github.com/telekom-mms/terraform-azurerm-log-analytics/tree/1.0.0) (2022-02-17) -[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/compare/0.0.1...1.0.0) +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-log-analytics/compare/0.0.1...1.0.0) -## [0.0.1](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/tree/0.0.1) (2021-12-16) +## [0.0.1](https://github.com/telekom-mms/terraform-azurerm-log-analytics/tree/0.0.1) (2021-12-16) -[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-log-analytics/compare/25d6312fa1b331112b42008b62549b6719e3fda6...0.0.1) +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-log-analytics/compare/25d6312fa1b331112b42008b62549b6719e3fda6...0.0.1) diff --git a/README.md b/README.md index 0e4c66c..c4a0bea 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,23 @@ -# log analytics +# log_analytics -This module manages Azure Log Analytics Workspace. +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. --> +_<-- This file is autogenerated, please do not change. -->_ ## Requirements | Name | Version | |------|---------| -| terraform | >=1.0 | -| azurerm | >=3.6.0 | +| terraform | >=1.5 | +| azurerm | >=3.79.0 | ## Providers | Name | Version | |------|---------| -| azurerm | >=3.6.0 | +| azurerm | >=3.79.0 | ## Resources @@ -36,20 +37,69 @@ This module manages Azure Log Analytics Workspace. | Name | Description | |------|-------------| -| log_analytics_solution | azurerm_log_analytics_solution | -| log_analytics_workspace | azurerm_log_analytics_workspace results | +| 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/T-Systems-MMS/log-analytics/azurerm" + source = "registry.terraform.io/telekom-mms/log-analytics/azurerm" log_analytics_workspace = { - service-monitor-loganalytics-workspace = { + logmms = { location = "westeurope" - resource_group_name = "service-mgmt-rg" + 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 = { - service = "service_name" + project = "mms-github" + environment = terraform.workspace + managed-by = "terraform" } } }