terraform/internal/stacks/stackruntime/testdata/mainbundle/test/complex-inputs/main.tf
Liam Cervante b646dff26a
stacks: apply nested default values to inputs (#35349)
* stacks: apply nested default values to inputs

* group similar tests
2024-06-18 12:03:43 +02:00

21 lines
355 B
HCL

terraform {
required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
}
variable "input" {
type = list(object({
id = string
value = string
}))
}
resource "testing_resource" "data" {
count = length(var.input)
id = var.input[count.index].id
value = var.input[count.index].value
}