From fcffd0207a103e384c240e462d9c314fb6416eea Mon Sep 17 00:00:00 2001 From: MyroslavLevchyk Date: Thu, 5 Sep 2024 12:47:18 +0300 Subject: [PATCH] feat: upgrade to AzureRM v4 --- README.md | 72 ++++++++++++++++++++++++++--------------------------- versions.tf | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 3148bb1..ccbb0c1 100644 --- a/README.md +++ b/README.md @@ -36,18 +36,18 @@ module "monitoring" { ## Requirements -| Name | Version | -| ------------------------------------------------------------------------- | --------- | -| [terraform](#requirement\_terraform) | >= 1.0.0 | -| [azurerm](#requirement\_azurerm) | >= 3.40.0 | -| [random](#requirement\_random) | >= 3.4.3 | +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | >= 1.0.0 | +| [azurerm](#requirement\_azurerm) | >= 4.0.1 | +| [random](#requirement\_random) | >= 3.4.3 | ## Providers -| Name | Version | -| ------------------------------------------------------------- | ------- | -| [azurerm](#provider\_azurerm) | 3.40.0 | -| [random](#provider\_random) | 3.4.3 | +| Name | Version | +|------|---------| +| [azurerm](#provider\_azurerm) | >= 4.0.1 | +| [random](#provider\_random) | >= 3.4.3 | ## Modules @@ -55,39 +55,39 @@ No modules. ## Resources -| Name | Type | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -| [random_uuid.adf](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/uuid) | resource | -| [random_uuid.databricks](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/uuid) | resource | -| [azurerm_application_insights_workbook.adf](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/application_insights_workbook_template) | resource | -| [azurerm_portal_dashboard.adf](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/portal_dashboard) | resource | -| [azurerm_application_insights_workbook.databricks](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/application_insights_workbook_template) | resource | -| [azurerm_portal_dashboard.databricks](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/portal_dashboard) | resource | +| Name | Type | +|------|------| +| [azurerm_application_insights_workbook.adf](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/application_insights_workbook) | resource | +| [azurerm_application_insights_workbook.databricks](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/application_insights_workbook) | resource | +| [azurerm_portal_dashboard.adf](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/portal_dashboard) | resource | +| [azurerm_portal_dashboard.databricks](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/portal_dashboard) | resource | +| [random_uuid.adf](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/uuid) | resource | +| [random_uuid.databricks](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/uuid) | resource | ## Inputs -| Name | Description | Type | Default | Required | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------- | ------- | :------: | -| [project](#input\_project) | Project name | `string` | n/a | yes | -| [env](#input\_env) | Environment name | `string` | n/a | yes | -| [resource\_group](#input\_resource\_group) | The name of the resource group in which resources is created | `string` | n/a | yes | -| [location](#input\_location) | Specifies the supported Azure location where the resource exists | `string` | n/a | yes | -| [custom\_adf\_workbook\_name](#input\_custom\_adf\_workbook\_name) | Specifies the display name of Azure Data Factory Workbook| `string` | `null` | no | -| [custom\_databricks\_workbook\_name](#input\_custom\_databricks\_workbook\_name) | Specifies the display name of Databricks Workbook | `string` | `null` | no | -| [custom\_adf\_dashboard\_name](#input\_custom\_adf\_dashboard\_name) | Specifies the name of the Azure Data Factory Shared Dashboard | `string` | `null` | no | -| [custom\_databricks\_dashboard\_name](#input\_custom\_databricks\_dashboard\_name) | Specifies the name of the Databricks Shared Dashboard | `string` | `null` | no | -| [tags](#input\_tags) | A mapping of tags to assign to the resource | `map(string)` | {} | no | -| [adf\_map](#input\_adf\_map) | Azure Data Factory name to id map | `map(string)` | {} | no | -| [log\_analytics\_workspace\_map](#input\_log\_analytics\_workspace\_map) | Azure Log Analytics name to id map | `map(string)` | {} | no | +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [adf\_map](#input\_adf\_map) | Azure Data Factory name to id map | `map(string)` | `{}` | no | +| [custom\_adf\_dashboard\_name](#input\_custom\_adf\_dashboard\_name) | Specifies the name of the Azure Data Factory Shared Dashboard | `string` | `null` | no | +| [custom\_adf\_workbook\_name](#input\_custom\_adf\_workbook\_name) | Specifies the display name of Azure Data Factory Workbook | `string` | `null` | no | +| [custom\_databricks\_dashboard\_name](#input\_custom\_databricks\_dashboard\_name) | Specifies the name of the Databricks Shared Dashboard | `string` | `null` | no | +| [custom\_databricks\_workbook\_name](#input\_custom\_databricks\_workbook\_name) | Specifies the display name of Databricks Workbook | `string` | `null` | no | +| [env](#input\_env) | Environment name | `string` | n/a | yes | +| [location](#input\_location) | Specifies the supported Azure location where the resource exists | `string` | n/a | yes | +| [log\_analytics\_workspace\_map](#input\_log\_analytics\_workspace\_map) | Azure Log Analytics name to id map | `map(string)` | `{}` | no | +| [project](#input\_project) | Project name | `string` | n/a | yes | +| [resource\_group](#input\_resource\_group) | The name of the resource group in which the Log Analytics workspace is created | `string` | n/a | yes | +| [tags](#input\_tags) | A mapping of tags to assign to the resource | `map(string)` | `{}` | no | ## Outputs -| Name | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------- | -| [workbook\_adf\_id](#output\_workbook\_adf\_id) | Azure Workbook ADF Template ID | -| [workbook\_databricks\_id](#output\_workbook\_databricks\_id) | Azure Workbook Databricks Template ID | -| [dashboard\_adf\_id](#output\_dashboard\_adf\_id) | Azure Shared Dashboard ADF ID | -| [dashboard\_databricks\_id](#output\_dashboard\_databricks\_id) | Azure Shared Dashboard Databricks ID | +| Name | Description | +|------|-------------| +| [dashboard\_adf\_id](#output\_dashboard\_adf\_id) | Azure Shared Dashboard Adf ID | +| [dashboard\_databricks\_id](#output\_dashboard\_databricks\_id) | Azure Shared Dashboard Databricks ID | +| [workbook\_adf\_id](#output\_workbook\_adf\_id) | Azure Workbook ADF Template ID | +| [workbook\_databricks\_id](#output\_workbook\_databricks\_id) | Azure Workbook Databricks Template ID | ## License diff --git a/versions.tf b/versions.tf index b0470cd..ae897c4 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = ">= 3.40.0" + version = ">= 4.0.1" } random = { source = "hashicorp/random"