/
githubmirror
/
terraform
Обзор
Документация
Войти
/
githubmirror
/
terraform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/command/testdata/console-nested-module-scopes/main.tf
28 строк
536 B
Austin Valle
console: Add `-scope` flag to allow expression evaluation in module instances (#38820)
08 июл 2026, 17:15
Не верифицирован
08 июл 2026, 17:15
4a7cdd1
Код
Авторство
О чём код?
variable "root" { type = string } locals { root = "${var.root} -> local" } resource "test_resource" "root" { value = "resource attr set to local -> ${local.root}" } module "child_single" { source = "./child" child_input = "${var.root} -> child" } module "child_foreach" { for_each = toset(["key1", "key2"]) source = "./child" child_input = "${var.root} -> child[${each.key}]" } module "child_count" { count = 2 source = "./child" child_input = "${var.root} -> child[${count.index}]" }