terraform/internal/stacks/stackruntime/testdata/mainbundle/test/with-data-source/with-data-source.tf

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

26 lines
361 B
Terraform
Raw Permalink Normal View History

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
}