BigDataBoutique / elasticsearch-cloud-deploy

Deploy Elasticsearch on the cloud easily
https://bigdataboutique.com/services/elasticsearch-consulting
Apache License 2.0
330 stars 146 forks source link

required field is not set error when running terraform plan (Azure) #62

Open jzalmanovich opened 5 years ago

jzalmanovich commented 5 years ago

Getting theses errors when trying to create the cluster, this is the output of terraform plan

Error: azurerm_virtual_machine_scale_set.data-nodes: "network_profile": required field is not set

Error: azurerm_virtual_machine_scale_set.master-nodes: "network_profile.0.ip_configuration.0.primary": required field is not set

jzalmanovich commented 5 years ago

The solution was to add primary = true under network_profile and network_profile.ip_configuration in masters.tf, datas.tf, and clients.tf

synhershko commented 5 years ago

Thanks - can you submit a PR with the fix?