Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Terraform (v0.11.7) 中有一个表达式:
my_expression = "${zipmap(random_shuffle.x.result, random_shuffle.x.result)}"
我需要将字符串附加到正确的表达式,例如:
my_expression = "${zipmap(random_shuffle.x.result, "*" + random_shuffle.x.result)}"
我对此有什么解决方案吗?提前致谢
实现这一目标的一种方法如下:
my_expression = "${zipmap(random_shuffle.x.result,formatlist("*%s",random_shuffle.x.result))}"