terraform/internal/stacks/stackconfig/testdata/basics-bundle/errored-sources/main.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

53 lines
No EOL
823 B
HCL

required_providers {
null = {
source = "hashicorp/null"
version = "3.2.1"
}
}
provider "null" "a" {}
removed {
from = stack.a.component.a // bad, stack.a is undefined so this is orphaned
source = "./"
providers = {
null = provider.null.a
}
}
removed {
from = stack.a.stack.b // bad, stack.a is undefined so this is orphaned
source = "./subdir"
}
removed {
from = stack.b["a"]
source = "./subdir"
}
removed {
from = stack.b["b"]
source = "./" // bad, the sources should be the same for stack.b
}
removed {
from = stack.a.component.b["a"]
source = "./"
providers = {
null = provider.null.a
}
}
removed {
from = stack.a.component.b["b"] // bad, the sources should be the same for component.b
source = "./subdir"
providers = {
null = provider.null.a
}
}