hashicorp / azure-consul

Single and Multi-Region Deployment of Consul Clusters on Azure
Mozilla Public License 2.0
26 stars 18 forks source link

Terraform 0.12 #5

Open krital opened 5 years ago

krital commented 5 years ago

I have just tried to follow the readme but it seems that terraform 0.12 final is out which has breaking changes. I tried running the 012Upgrade command to migrate everything to the new format and it seemed to work, until I tried running terraform plan. I then get the following:

Error: Invalid value for module argument

on main.tf line 37, in module "consul_azure_westeurope": 37: private_subnet_ids = [module.network_westeurope.subnet_private_ids]

The given value is not suitable for child module variable "private_subnet_ids" defined at ../modules/consul-azure/_interface.tf:30,1-30: element 0: string required.

I am a beginner in terraform but does this mean that the variable contains an array of subnet ids while the variable expects a single string? Anyone have any other ideas?

senkadir commented 5 years ago

Same problem.

patrickhuber commented 5 years ago

Can you look at pull request #6 and see if you run into issues? I tested the muti-region but haven't had a chance to test the single region.