Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Error: Unsupported argument #5

Open
Jeka-Dem opened this issue Nov 21, 2019 · 1 comment
Open

Error: Unsupported argument #5

Jeka-Dem opened this issue Nov 21, 2019 · 1 comment

Comments

@Jeka-Dem
Copy link

Terraform v0.12.12
zabbix_provider - 0.0.4
Issue: during terraform plan, get error:
Error: Unsupported argument
on ../../modules/vm_base/main.tf line 125, in resource "zabbix_host" "this": 125: interfaces

An argument named "interfaces" is not expected here. Did you mean to define a block of type "interfaces"?

main.tf:
resource "zabbix_host" "this" { count = "${var.vm_count}" host = "${element(vsphere_virtual_machine.this.*.name, count.index)}" interfaces = [{ main = true }] groups = [ "${zabbix_host_group.this}"] templates = ["Template OS Linux v2"] depends_on = [vsphere_virtual_machine.this] }

@Jeka-Dem
Copy link
Author

also, I've tried to declare a variable in variables.tf:
variable "interfaces" { type = list(map(string)) default = [] }
the same

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant