terraform/internal/stacks/stackruntime/testdata/mainbundle/test/dependent-component/dependent-component.tfstack.hcl
Liam Cervante 7163c4b6d5
stacks: fix destroy ordering of stacks destroy plans (#35665)
* stacks: remove unneeded required components functions

* stacks: refactor the mock provider for realism

* deferred actions: fix missing features in deletions

* stacks: fix destroy ordering of stacks destroy plans

* fix missing import
2024-09-05 12:10:24 +02:00

37 lines
657 B
HCL

required_providers {
testing = {
source = "hashicorp/testing"
version = "0.1.0"
}
}
provider "testing" "default" {}
component "valid" {
source = "../with-single-input"
providers = {
testing = provider.testing.default
}
inputs = {
id = "valid"
input = "resource"
}
}
// this component must be created after component.valid
// this component must be destroyed before component.valid
component "self" {
source = "./"
providers = {
testing = provider.testing.default
}
inputs = {
id = "dependent"
requirements = [
"valid"
]
}
depends_on = [
component.valid
]
}