claranet / terraform-provider-zabbix

Terraform provider for Zabbix.
MIT License
28 stars 17 forks source link

Unable to use provider with Zabbix 6.4 #62

Open altmas5 opened 1 year ago

altmas5 commented 1 year ago

Hi, my code was working on version 4.2 and 5.2, but on version 6.4 I get the following error during terraform plan:

╷
│ Error: -32602 (Invalid params.): Invalid parameter "/": unexpected parameter "user".
│ 
│   with provider["registry.terraform.io/claranet/zabbix"],
│   on main.tf line 9, in provider "zabbix":
│    9: provider "zabbix" {
│ 
╵

My code at line 9 is the initialization or configuration of the provider as shown on the README:

provider "zabbix" {
  user       = var.user
  password   = var.password
  server_url = var.server_url
}

Terraform version

Terraform v1.3.7
on linux_amd64
+ provider registry.terraform.io/claranet/zabbix v0.4.0
david-moreau commented 1 year ago

hi @altmas5 ZBXNEXT-8085 user.login: dropped support for deprecated parameter user.

You must use username parameter now.

altmas5 commented 1 year ago

Thanks @david-moreau I have created a PR for updating that, but I think it also needs to get this go-zabbix-api to get updated

redzioch commented 1 year ago

https://github.com/tpretz/go-zabbix-api/pulls