hashicorp / terraform-cidr-subnets

A Terraform module for calculating subnet IP address prefixes
Mozilla Public License 2.0
78 stars 41 forks source link

Error with AzureDevOps Terraform Installer V1.2.7 #12

Closed mikeschroeder427 closed 2 years ago

mikeschroeder427 commented 2 years ago

Starting with Azure DevOps Terraform Installer Version 1.2.7, an error would occur during terraform apply/plan.

│ Error: Unsupported argument │ │ on subnets/subnets.tf line 4, in module "subnet_addrs": │ 4: base_cidr_block = data.azurerm_virtual_network.vnet.address_space[0] │ │ An argument named "base_cidr_block" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on subnets/subnets.tf line 5, in module "subnet_addrs": │ 5: networks = local.subnets │ │ An argument named "networks" is not expected here. ╵

No changes were made to the subnet_addrs module before this error started. When the latest TerraformInstaller v1.2.7 was downloaded, the issues began. Setting the version for the TerraformInstaller to 1.2.6 resolved the issue and the error disappeared.

mikeschroeder427 commented 2 years ago

resolved as part of https://github.com/hashicorp/terraform/issues/31615