find meta references through locals

This commit is contained in:
James Bardin
2022-02-03 17:31:23 -05:00
parent 4181b6e106
commit b3adcf06a1
4 changed files with 31 additions and 2 deletions

View File

@@ -20,6 +20,8 @@ locals {
}
]
])
controllers = test_thing.controller
}
resource "test_thing" "worker" {
@@ -39,7 +41,7 @@ resource "test_thing" "load_balancer" {
string = var.network.vpc_id
dynamic "list" {
for_each = test_thing.controller
for_each = local.controllers
content {
z = list.value.string
}