我正在尝试让 terraform 根据以下计数条件创建资源,我无法理解语法,它应该如下所示:
count = “${var.size[terraform.workspace] == "big" ? && local.ips[terraform.workspace] != “<none>“} then 10
elseif
${var.size[terraform.workspace] == "small" && local.ips[terraform.workspace] != “<none>” } then 20
else 0