CLI import target validation for incorrect for_each keys (#3106)

Signed-off-by: Ilia Gogotchuri <ilia.gogotchuri0@gmail.com>
This commit is contained in:
Ilia Gogotchuri
2025-09-02 13:21:19 +04:00
committed by GitHub
parent 28493bc63f
commit 2c68afe753
12 changed files with 300 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
variable "id" {
type = string
}
resource "test_instance" "this" {
}

View File

@@ -0,0 +1,10 @@
locals {
items = toset(["a", "b"])
}
module "child" {
source = "./child"
for_each = local.items
id = each.key
}