│ Invalid value for "list" parameter: must be a list, set, or tuple value with either zero or one elements. ╵ range生成顺序列表: range(max) range(start, limit) range(start, limit, step) > range(3) tolist([ 0, 1, 2, ]) > range(1, 6) tolist([ 1, 2, 3, 4, 5, ])...
│ Invalid value for "list" parameter: must be a list, set, or tuple value with either zero or one elements. ╵ range生成顺序列表: range(max) range(start, limit) range(start, limit, step) > range(3) tolist([ 0, 1, 2, ]) > range(1, 6) tolist([ 1, 2, 3, 4, 5, ])...
复合类型:list(<TYPE>)、set(<TYPE>)、map(<TYPE>)、object({<ATTR NAME> = <TYPE>, ... })、tuple([<TYPE>, ...]) 描述 简要描述每个变量的用途。例如: variable"image_id"{ type=string description="The id of the machine image (AMI) to use for the server." ...
在您深入研究此问题时,可以尝试将结果转换为列表(https://www.terraform.io/docs/configuration/functions/tolist.html)。 - Stargazer3个回答 33 Terraform 0.12对列表和集合值进行了更强的区分,比0.11更严格,并增加了一些额外的检查。 在这种情况下,concat失败的原因是因为连接要求所有元素都具有明确定义的顺序,...
这个for表达式遍历了var.list中的每个元素,然后评估表达式upper(s),将s设置为每个相应的元素。然后它用所有执行该表达式的结果按相同的顺序建立一个新的元组值。 一个for表达式的输入(在in关键字之后给出)可以是一个列表,一个集合,一个元组,一个 map,或者一个对象 (object)。
包含string、number、bool、list、map、set、object、tuple、any(默认约束类型为any) string:字符串 variable "map_example" { description = "an example of a map in terrform" type = map(string) default = { key1 = "value1" key2 = "value2" ...
这时就不会使用索引 where a like 'xxx%',这时则会使用索引 而在大量模糊查询中经常会用到 '%xxx%...
类型 输入变量块中通过 type 定义类型: 基本类型:string,number,bool. 复合类型:list(),set(),map(),object({ = , ... }), tuple([, ...]). 描述 简要描述每个变量的用途.例如: variable "image_id" { type = string description = "The id of the machine image (AMI) to use for the ...
server_group_tuples - (Required, List) The Forwarding Destination Server Group See server_group_tuples below. default_actions-forward_group_config-server_group_tuples The default_actions-forward_group_config-server_group_tuples supports the following: server_group_id - (Required) Forwarded to the...
list(ortuple): a sequence of values, like["us-west-1a", "us-west-1c"]. Identify elements in a list with consecutive whole numbers, starting with zero. set: a collection of unique values that do not have any secondary identifiers or ordering. ...