Open barbaluc opened 4 years ago
Hi @barbaluc, the issue is caused by the snmp block:
interfaces {
type = "snmp"
dns = "testzabbix.mydomain.local"
main = true
port = 161
}
Commenting it out let's the apply work.
Zabbix 5.0 introduced a new details
parameter that is required with SNMP interfaces:
details
| array | Additional object for interface. Required if interface 'type' is SNMP.
See https://www.zabbix.com/documentation/5.0/manual/api/reference/hostinterface/object
The zabbix provider does not support that parameter yet, code changes need to be implemented.
Thanks @pdecat for your analyse. For starting, we will comment the snmp block, it's not completly necessary for our supervision.
Steps to reproduce
Write exemple.tf
Write terraform.tf (Server must be in version 5)
Execute
Output error
Thanks in advance for your help