blob: c5ddc84f7674fe206212f688410dbb04c9e4b3f7 [file] [log] [blame]
terraform {
required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
}
variable "id" {
type = string
default = null
nullable = true # We'll generate an ID if none provided.
}
variable "input" {
type = string
}
resource "testing_resource" "data" {
id = var.id
value = var.input
}
output "id" {
value = testing_resource.data.id
}