mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 02:20:07 -04:00
We previously used a loader -> BuildConfig flow to load configuration. This commit changes most (but not all yet) flows to use the new graph-based approach. Instead of simply recursively loading the modules, we now need to take a stepped approach: 1. Load the root module 2. Collect the variables and their values 3. Build the configuration with the graph-based approach Because this approach relies on different parts from different packages, it can't easliy be done within the `configload` package. So, now we do most of in the backend or command.
5 lines
136 B
HCL
5 lines
136 B
HCL
|
|
module "test" {
|
|
source = "---.com/HashiCorp/Consul/aws"
|
|
version = "1.0.0" # Makes Terraform assume "source" is a module address
|
|
}
|