terraform/internal/stacks/stackruntime/testdata/mainbundle/test/complex-inputs/main.tf

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
355 B
Terraform
Raw Permalink Normal View History

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
}