mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-04 22:40:45 -05:00
* 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
37 lines
657 B
HCL
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
|
|
]
|
|
}
|