mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-13 07:53:22 -05:00
Providers can be required from multiple sources. The previous implementation of the providers sub-command displayed only a flat list of provider requirements, which made it difficult to see which modules required each provider. This commit reintroduces the tree display of provider requirements, and adds a separate output block for providers required by existing state.
15 lines
162 B
HCL
15 lines
162 B
HCL
terraform {
|
|
required_providers {
|
|
foo = {
|
|
version = "1.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "bar" {
|
|
version = "2.0.0"
|
|
}
|
|
|
|
module "kiddo" {
|
|
source = "./child"
|
|
}
|