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

43 lines
506 B
HCL

required_providers {
null = {
source = "hashicorp/null"
version = "3.2.1"
}
}
variable "name" {
type = string
}
variable "provider" {
type = providerconfig(null)
}
component "a" {
source = "../"
inputs = {
name = var.name
}
providers = {
null = var.provider
}
}
removed {
from = component.b
source = "../"
providers = {
null = var.provider
}
lifecycle {
destroy = true
}
}
output "greeting" {
type = string
value = component.a.greeting
}