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

61 lines
No EOL
949 B
HCL

required_providers {
null = {
source = "hashicorp/null"
version = "3.2.1"
}
}
provider "null" "a" {}
component "a" {
source = "./"
inputs = {
name = var.name
}
providers = {
null = provider.null.a
}
}
removed {
// This is invalid, you can't reference the whole component like this if
// the target component is still in the config.
from = component.a
source = "./"
providers = {
null = provider.null.a
}
}
removed {
// This is invalid, you must reference the for_each somewhere in the
// from attribute if both are present.
from = component.b["something"]
for_each = ["a", "b"]
source = "./"
providers = {
null = provider.null.a
}
}
removed {
// This is invalid, you must reference the for_each somewhere in the
// from attribute if both are present.
from = component.c
for_each = ["a", "b"]
source = "./"
providers = {
null = provider.null.a
}
}