From 4010f00073bcacef8a075f1c97c53e80bed1459b Mon Sep 17 00:00:00 2001 From: Adrian Celebanski <135693994+acelebanski@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:04:53 +0200 Subject: [PATCH] feat!: Bump AzureRM to v4 and replace deprecated properties (#86) --- examples/common_vmseries/README.md | 4 ++-- examples/common_vmseries/variables.tf | 4 ++-- examples/common_vmseries_and_autoscale/README.md | 4 ++-- examples/common_vmseries_and_autoscale/variables.tf | 4 ++-- examples/dedicated_vmseries/README.md | 4 ++-- examples/dedicated_vmseries/variables.tf | 4 ++-- examples/dedicated_vmseries_and_autoscale/README.md | 4 ++-- .../dedicated_vmseries_and_autoscale/variables.tf | 4 ++-- examples/gwlb_with_vmseries/README.md | 4 ++-- examples/gwlb_with_vmseries/variables.tf | 4 ++-- examples/standalone_panorama/README.md | 2 +- examples/standalone_panorama/variables.tf | 2 +- examples/standalone_vmseries/README.md | 4 ++-- examples/standalone_vmseries/variables.tf | 4 ++-- modules/appgw/README.md | 4 ++-- modules/appgw/versions.tf | 2 +- modules/bootstrap/README.md | 4 ++-- modules/bootstrap/versions.tf | 2 +- modules/gwlb/README.md | 4 ++-- modules/gwlb/versions.tf | 2 +- modules/loadbalancer/README.md | 4 ++-- modules/loadbalancer/versions.tf | 2 +- modules/natgw/README.md | 4 ++-- modules/natgw/versions.tf | 2 +- modules/ngfw_metrics/README.md | 4 ++-- modules/ngfw_metrics/versions.tf | 2 +- modules/panorama/README.md | 4 ++-- modules/panorama/main.tf | 12 ++++++------ modules/panorama/versions.tf | 2 +- modules/public_ip/README.md | 4 ++-- modules/public_ip/versions.tf | 2 +- modules/test_infrastructure/.README.md | 4 ++-- modules/test_infrastructure/versions.tf | 2 +- modules/virtual_machine/main.tf | 12 ++++++------ modules/virtual_network_gateway/README.md | 4 ++-- modules/virtual_network_gateway/versions.tf | 2 +- modules/vmseries/README.md | 4 ++-- modules/vmseries/versions.tf | 2 +- modules/vmss/README.md | 4 ++-- modules/vmss/versions.tf | 2 +- modules/vnet/README.md | 8 ++++---- modules/vnet/main.tf | 2 +- modules/vnet/outputs.tf | 2 +- modules/vnet/variables.tf | 4 ++-- modules/vnet/versions.tf | 2 +- modules/vnet_peering/README.md | 4 ++-- modules/vnet_peering/versions.tf | 2 +- 47 files changed, 86 insertions(+), 86 deletions(-) diff --git a/examples/common_vmseries/README.md b/examples/common_vmseries/README.md index 2bcc1b2d..ccc3a281 100644 --- a/examples/common_vmseries/README.md +++ b/examples/common_vmseries/README.md @@ -327,7 +327,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1341,7 +1341,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/common_vmseries/variables.tf b/examples/common_vmseries/variables.tf index df3706ed..ae5c985b 100644 --- a/examples/common_vmseries/variables.tf +++ b/examples/common_vmseries/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1055,7 +1055,7 @@ variable "test_infrastructure" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/common_vmseries_and_autoscale/README.md b/examples/common_vmseries_and_autoscale/README.md index a6334b4f..65d3192b 100644 --- a/examples/common_vmseries_and_autoscale/README.md +++ b/examples/common_vmseries_and_autoscale/README.md @@ -350,7 +350,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1223,7 +1223,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/common_vmseries_and_autoscale/variables.tf b/examples/common_vmseries_and_autoscale/variables.tf index 976ad0b4..0126e20a 100644 --- a/examples/common_vmseries_and_autoscale/variables.tf +++ b/examples/common_vmseries_and_autoscale/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -867,7 +867,7 @@ variable "test_infrastructure" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/dedicated_vmseries/README.md b/examples/dedicated_vmseries/README.md index abcad77c..024864b1 100644 --- a/examples/dedicated_vmseries/README.md +++ b/examples/dedicated_vmseries/README.md @@ -331,7 +331,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1345,7 +1345,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/dedicated_vmseries/variables.tf b/examples/dedicated_vmseries/variables.tf index df3706ed..ae5c985b 100644 --- a/examples/dedicated_vmseries/variables.tf +++ b/examples/dedicated_vmseries/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1055,7 +1055,7 @@ variable "test_infrastructure" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/dedicated_vmseries_and_autoscale/README.md b/examples/dedicated_vmseries_and_autoscale/README.md index 7bf1ff1a..3020d853 100644 --- a/examples/dedicated_vmseries_and_autoscale/README.md +++ b/examples/dedicated_vmseries_and_autoscale/README.md @@ -344,7 +344,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1217,7 +1217,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/dedicated_vmseries_and_autoscale/variables.tf b/examples/dedicated_vmseries_and_autoscale/variables.tf index 976ad0b4..0126e20a 100644 --- a/examples/dedicated_vmseries_and_autoscale/variables.tf +++ b/examples/dedicated_vmseries_and_autoscale/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -867,7 +867,7 @@ variable "test_infrastructure" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/gwlb_with_vmseries/README.md b/examples/gwlb_with_vmseries/README.md index aa4529bb..43c402e5 100644 --- a/examples/gwlb_with_vmseries/README.md +++ b/examples/gwlb_with_vmseries/README.md @@ -268,7 +268,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -991,7 +991,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/gwlb_with_vmseries/variables.tf b/examples/gwlb_with_vmseries/variables.tf index e49413d3..e4d256aa 100644 --- a/examples/gwlb_with_vmseries/variables.tf +++ b/examples/gwlb_with_vmseries/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -776,7 +776,7 @@ variable "test_infrastructure" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/standalone_panorama/README.md b/examples/standalone_panorama/README.md index 4195661a..2445c1b7 100644 --- a/examples/standalone_panorama/README.md +++ b/examples/standalone_panorama/README.md @@ -247,7 +247,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/standalone_panorama/variables.tf b/examples/standalone_panorama/variables.tf index e573ffc1..70fa8f0d 100644 --- a/examples/standalone_panorama/variables.tf +++ b/examples/standalone_panorama/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/standalone_vmseries/README.md b/examples/standalone_vmseries/README.md index 57c85127..c8d884c7 100644 --- a/examples/standalone_vmseries/README.md +++ b/examples/standalone_vmseries/README.md @@ -265,7 +265,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1279,7 +1279,7 @@ map(object({ })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/examples/standalone_vmseries/variables.tf b/examples/standalone_vmseries/variables.tf index df3706ed..ae5c985b 100644 --- a/examples/standalone_vmseries/variables.tf +++ b/examples/standalone_vmseries/variables.tf @@ -102,7 +102,7 @@ variable "vnets" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string @@ -1055,7 +1055,7 @@ variable "test_infrastructure" { })), {}) route_tables = optional(map(object({ name = string - disable_bgp_route_propagation = optional(bool) + bgp_route_propagation_enabled = optional(bool) routes = map(object({ name = string address_prefix = string diff --git a/modules/appgw/README.md b/modules/appgw/README.md index 69583adc..bd9580ac 100644 --- a/modules/appgw/README.md +++ b/modules/appgw/README.md @@ -814,11 +814,11 @@ appgws = { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/appgw/versions.tf b/modules/appgw/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/appgw/versions.tf +++ b/modules/appgw/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/bootstrap/README.md b/modules/bootstrap/README.md index 861b3b25..5929019d 100644 --- a/modules/bootstrap/README.md +++ b/modules/bootstrap/README.md @@ -132,11 +132,11 @@ details refer to the [var.file_shares](#file_shares) variable documentation. ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98, <= 3.114 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98, <= 3.114 +- `azurerm`, version: ~> 4.0 diff --git a/modules/bootstrap/versions.tf b/modules/bootstrap/versions.tf index 8a41b25b..dbd95b34 100644 --- a/modules/bootstrap/versions.tf +++ b/modules/bootstrap/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98, <= 3.114" + version = "~> 4.0" } } } diff --git a/modules/gwlb/README.md b/modules/gwlb/README.md index 83cf8fbf..23445714 100644 --- a/modules/gwlb/README.md +++ b/modules/gwlb/README.md @@ -85,11 +85,11 @@ For more customized requirements, below extended definition of GWLB can be appli ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/gwlb/versions.tf b/modules/gwlb/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/gwlb/versions.tf +++ b/modules/gwlb/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/loadbalancer/README.md b/modules/loadbalancer/README.md index 642921c6..ea5744ec 100644 --- a/modules/loadbalancer/README.md +++ b/modules/loadbalancer/README.md @@ -87,11 +87,11 @@ module "lbe" { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/loadbalancer/versions.tf b/modules/loadbalancer/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/loadbalancer/versions.tf +++ b/modules/loadbalancer/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/natgw/README.md b/modules/natgw/README.md index ffe1954f..ed030352 100644 --- a/modules/natgw/README.md +++ b/modules/natgw/README.md @@ -43,11 +43,11 @@ by Azure. ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/natgw/versions.tf b/modules/natgw/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/natgw/versions.tf +++ b/modules/natgw/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/ngfw_metrics/README.md b/modules/ngfw_metrics/README.md index 2ef70520..36c55a87 100644 --- a/modules/ngfw_metrics/README.md +++ b/modules/ngfw_metrics/README.md @@ -59,11 +59,11 @@ module "ngfw_metrics" { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/ngfw_metrics/versions.tf b/modules/ngfw_metrics/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/ngfw_metrics/versions.tf +++ b/modules/ngfw_metrics/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/panorama/README.md b/modules/panorama/README.md index 5dc6bfd4..d5a562f7 100644 --- a/modules/panorama/README.md +++ b/modules/panorama/README.md @@ -22,11 +22,11 @@ The acceptance applies to the entirety of your Azure Subscription. ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/panorama/main.tf b/modules/panorama/main.tf index 9b307a89..dfc12c6c 100644 --- a/modules/panorama/main.tf +++ b/modules/panorama/main.tf @@ -23,12 +23,12 @@ data "azurerm_public_ip" "this" { resource "azurerm_network_interface" "this" { for_each = { for k, v in var.interfaces : v.name => merge(v, { index = k }) } - name = each.value.name - location = var.region - resource_group_name = var.resource_group_name - enable_accelerated_networking = false - enable_ip_forwarding = false - tags = var.tags + name = each.value.name + location = var.region + resource_group_name = var.resource_group_name + accelerated_networking_enabled = false + ip_forwarding_enabled = false + tags = var.tags ip_configuration { name = "primary" diff --git a/modules/panorama/versions.tf b/modules/panorama/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/panorama/versions.tf +++ b/modules/panorama/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/public_ip/README.md b/modules/public_ip/README.md index 89f2aaf1..0c8a2dd9 100644 --- a/modules/public_ip/README.md +++ b/modules/public_ip/README.md @@ -125,11 +125,11 @@ variable "public_ips" { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/public_ip/versions.tf b/modules/public_ip/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/public_ip/versions.tf +++ b/modules/public_ip/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/test_infrastructure/.README.md b/modules/test_infrastructure/.README.md index 0a5dc339..e67cefa3 100644 --- a/modules/test_infrastructure/.README.md +++ b/modules/test_infrastructure/.README.md @@ -13,11 +13,11 @@ For usage please refer to any reference architecture example. ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Modules Name | Version | Source | Description diff --git a/modules/test_infrastructure/versions.tf b/modules/test_infrastructure/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/test_infrastructure/versions.tf +++ b/modules/test_infrastructure/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/virtual_machine/main.tf b/modules/virtual_machine/main.tf index b6b2d344..5618973d 100644 --- a/modules/virtual_machine/main.tf +++ b/modules/virtual_machine/main.tf @@ -22,12 +22,12 @@ resource "azurerm_public_ip" "this" { resource "azurerm_network_interface" "this" { count = length(var.interfaces) - name = var.interfaces[count.index].name - location = var.region - resource_group_name = var.resource_group_name - enable_accelerated_networking = var.accelerated_networking - enable_ip_forwarding = true - tags = try(var.interfaces[count.index].tags, var.tags) + name = var.interfaces[count.index].name + location = var.region + resource_group_name = var.resource_group_name + accelerated_networking_enabled = var.accelerated_networking + ip_forwarding_enabled = true + tags = try(var.interfaces[count.index].tags, var.tags) ip_configuration { name = "primary" diff --git a/modules/virtual_network_gateway/README.md b/modules/virtual_network_gateway/README.md index 36cdcff1..20fe7945 100644 --- a/modules/virtual_network_gateway/README.md +++ b/modules/virtual_network_gateway/README.md @@ -317,11 +317,11 @@ variable "virtual_network_gateways" { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/virtual_network_gateway/versions.tf b/modules/virtual_network_gateway/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/virtual_network_gateway/versions.tf +++ b/modules/virtual_network_gateway/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/vmseries/README.md b/modules/vmseries/README.md index 180b9861..8917b3ef 100644 --- a/modules/vmseries/README.md +++ b/modules/vmseries/README.md @@ -36,11 +36,11 @@ If your Region doesn't, use an alternative mechanism of Availability Set, which ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/vmseries/versions.tf b/modules/vmseries/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/vmseries/versions.tf +++ b/modules/vmseries/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/vmss/README.md b/modules/vmss/README.md index 4f38e99b..9d3544b0 100644 --- a/modules/vmss/README.md +++ b/modules/vmss/README.md @@ -103,11 +103,11 @@ module "vmss" { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Modules Name | Version | Source | Description diff --git a/modules/vmss/versions.tf b/modules/vmss/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/vmss/versions.tf +++ b/modules/vmss/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/vnet/README.md b/modules/vnet/README.md index 9ba9ffbb..b2c427da 100644 --- a/modules/vnet/README.md +++ b/modules/vnet/README.md @@ -126,11 +126,11 @@ This module is designed to work in several *modes* depending on which variables ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 @@ -395,7 +395,7 @@ Map of objects describing a Route Tables. List of available properties: - `name` - (`string`, required) name of a Route Table. -- `disable_bgp_route_propagation` - (`bool`, optional, defaults to `false`) controls propagation of routes learned by BGP. +- `bgp_route_propagation_enabled` - (`bool`, optional, defaults to `true`) controls propagation of routes learned by BGP. - `routes` - (`map`, required) a map of Route Table entries (UDRs): - `name` - (`string`, required) a name of a UDR. - `address_prefix` - (`string`, required) the destination CIDR to which the route applies, such as `10.1.0.0/16`. @@ -442,7 +442,7 @@ Type: ```hcl map(object({ name = string - disable_bgp_route_propagation = optional(bool, false) + bgp_route_propagation_enabled = optional(bool, true) routes = map(object({ name = string address_prefix = string diff --git a/modules/vnet/main.tf b/modules/vnet/main.tf index dee5a0fd..66fa9874 100644 --- a/modules/vnet/main.tf +++ b/modules/vnet/main.tf @@ -116,7 +116,7 @@ resource "azurerm_route_table" "this" { location = var.region resource_group_name = var.resource_group_name tags = var.tags - disable_bgp_route_propagation = each.value.disable_bgp_route_propagation + bgp_route_propagation_enabled = each.value.bgp_route_propagation_enabled } locals { diff --git a/modules/vnet/outputs.tf b/modules/vnet/outputs.tf index 38b0ea1e..8333404e 100644 --- a/modules/vnet/outputs.tf +++ b/modules/vnet/outputs.tf @@ -5,7 +5,7 @@ output "virtual_network_id" { output "vnet_cidr" { description = "VNET address space." - value = local.virtual_network.address_space + value = tolist(local.virtual_network.address_space) } output "subnet_ids" { diff --git a/modules/vnet/variables.tf b/modules/vnet/variables.tf index 21ff975b..0f3e48c6 100644 --- a/modules/vnet/variables.tf +++ b/modules/vnet/variables.tf @@ -412,7 +412,7 @@ variable "route_tables" { List of available properties: - `name` - (`string`, required) name of a Route Table. - - `disable_bgp_route_propagation` - (`bool`, optional, defaults to `false`) controls propagation of routes learned by BGP. + - `bgp_route_propagation_enabled` - (`bool`, optional, defaults to `true`) controls propagation of routes learned by BGP. - `routes` - (`map`, required) a map of Route Table entries (UDRs): - `name` - (`string`, required) a name of a UDR. - `address_prefix` - (`string`, required) the destination CIDR to which the route applies, such as `10.1.0.0/16`. @@ -457,7 +457,7 @@ variable "route_tables" { nullable = false type = map(object({ name = string - disable_bgp_route_propagation = optional(bool, false) + bgp_route_propagation_enabled = optional(bool, true) routes = map(object({ name = string address_prefix = string diff --git a/modules/vnet/versions.tf b/modules/vnet/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/vnet/versions.tf +++ b/modules/vnet/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } } diff --git a/modules/vnet_peering/README.md b/modules/vnet_peering/README.md index 264cf8ed..57172b3b 100644 --- a/modules/vnet_peering/README.md +++ b/modules/vnet_peering/README.md @@ -25,11 +25,11 @@ remote_peer_config = { ### Requirements - `terraform`, version: >= 1.5, < 2.0 -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 ### Providers -- `azurerm`, version: ~> 3.98 +- `azurerm`, version: ~> 4.0 diff --git a/modules/vnet_peering/versions.tf b/modules/vnet_peering/versions.tf index d5f13e9a..dbd95b34 100644 --- a/modules/vnet_peering/versions.tf +++ b/modules/vnet_peering/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~> 3.98" + version = "~> 4.0" } } }