Files
opentf/command/testdata/providers/modules/main.tf
Alisdair McDiarmid 1c1e4a4de0 command/providers: Show provider requirements tree
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.
2020-06-09 14:21:53 -04:00

16 lines
162 B
HCL

terraform {
required_providers {
foo = {
version = "1.0"
}
}
}
provider "bar" {
version = "2.0.0"
}
module "kiddo" {
source = "./child"
}