mirror of https://github.com/hashicorp/terraform
Add the Version and Providers fields to the module config. Add ProviderConfig.Scope, which will be used to record the original path of a ProviderConfig for interpolation.pull/16480/head
parent
dceecdc047
commit
29e5a355b9
@ -1,7 +1,11 @@
|
||||
package module
|
||||
|
||||
import "github.com/hashicorp/terraform/config"
|
||||
|
||||
// Module represents the metadata for a single module.
|
||||
type Module struct {
|
||||
Name string
|
||||
Source string
|
||||
Name string
|
||||
Source string
|
||||
Version string
|
||||
Providers []*config.ProviderConfig
|
||||
}
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
module "child" {
|
||||
source = "./child"
|
||||
version = "0.1.2"
|
||||
providers = {
|
||||
"aws" = "aws.foo"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue