elasticsearch-cloud-deploy icon indicating copy to clipboard operation
elasticsearch-cloud-deploy copied to clipboard

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

Open jzalmanovich opened this issue 7 years ago • 2 comments

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 avatar Dec 18 '18 01:12 jzalmanovich

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

jzalmanovich avatar Dec 18 '18 23:12 jzalmanovich

Thanks - can you submit a PR with the fix?

synhershko avatar Dec 19 '18 19:12 synhershko