You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/stacks/stackruntime/testdata/mainbundle/test/with-data-source/with-data-source.tf

26 lines
361 B

terraform {
required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
}
variable "id" {
type = string
}
variable "resource" {
type = string
}
data "testing_data_source" "data" {
id = var.id
}
resource "testing_resource" "data" {
id = var.resource
value = data.testing_data_source.data.value
}