unknown token IDENT list error for IP address variable

允我心安 提交于 2020-01-14 10:11:20

问题


I have defined variable in my .tfvars variable as

variables.tfvars

address_space = ["10.197.0.0/16"]

build-windows.tf

variable "address_space" {
  type = list
}

In build-windows.tf file I get the error as Unknow token ident list?

Not sure what I am doing wrong here, I even do not understand why terraform wants me to use the list instead of a string. When I use string I get an error in terraform plan stating that I have to use list.

Not going anywhere.

Please assist


回答1:


The type parameter is a string - try passing "list" into it.

variable "address_space" {
  type = "list"
}


来源:https://stackoverflow.com/questions/52750472/unknown-token-ident-list-error-for-ip-address-variable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!