mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 10:31:22 -04:00
22 lines
286 B
HCL
22 lines
286 B
HCL
required_providers {
|
|
# Built-in providers can be omitted.
|
|
}
|
|
|
|
provider "terraform" "x" {}
|
|
|
|
component "a" {
|
|
source = "./component"
|
|
|
|
inputs = {
|
|
name = var.name
|
|
}
|
|
|
|
providers = {
|
|
x = var.provider
|
|
}
|
|
}
|
|
|
|
output "greeting" {
|
|
type = string
|
|
value = component.a.greeting
|
|
}
|