terraform/internal/stacks/stackruntime/testdata/mainbundle/test/component-chain/component-chain.tfcomponent.hcl
Liam Cervante a80220dcc9
stacks: rename .tfstack files to .tfcomponent (#37013)
* stacks: rename .tfstack files to .tfcomponent

* fix consistency issues
2025-05-15 08:33:13 +02:00

56 lines
716 B
HCL

required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
provider "testing" "default" {}
variable "value" {
type = string
}
component "one" {
source = "./"
providers = {
testing = provider.testing.default
}
inputs = {
id = "one"
value = var.value
}
}
component "two" {
source = "./"
providers = {
testing = provider.testing.default
}
inputs = {
id = "two"
value = component.one.value
}
}
component "three" {
source = "./"
providers = {
testing = provider.testing.default
}
inputs = {
id = "three"
value = component.two.value
}
}
output "value" {
value = component.three.value
type = string
}