我想在模块块中使用count,但是因为它不受支持,所以我尝试用for循环来编写for_each,但是它给出了"for_each" argument value is unsuitable错误。我不能将count传递给内部模块,因为它会弄乱我的输出格式。谁能指导我如何正确地调用for_each。main.tf module "test" { index =
当资源本身使用github_repository创建时,我试图找到一种有条件填充for_each资源页面块的方法。动态块似乎是实现这一目标的适当方法,但我正在与语法进行斗争。variables.tf: description = "The repositories to create using terraform"description = string,