mirror of https://github.com/hashicorp/terraform
backport of commit 33ef3dc516
parent
dea81a8272
commit
bb75d4c32d
@ -0,0 +1,14 @@
|
||||
{
|
||||
"Modules": [
|
||||
{
|
||||
"Key": "",
|
||||
"Source": "",
|
||||
"Dir": "."
|
||||
},
|
||||
{
|
||||
"Key": "child",
|
||||
"Source": "./modules/example",
|
||||
"Dir": "modules/example"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
{
|
||||
"version": 3,
|
||||
"terraform_version": "1.15.0",
|
||||
"backend": {
|
||||
"type": "cloud",
|
||||
"config": {
|
||||
"hostname": null,
|
||||
"organization": "hashicorp",
|
||||
"token": null,
|
||||
"workspaces": {
|
||||
"name": "test",
|
||||
"project": null,
|
||||
"tags": null
|
||||
}
|
||||
},
|
||||
"hash": 1816475682
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
terraform {
|
||||
cloud {
|
||||
organization = "hashicorp"
|
||||
workspaces {
|
||||
name = "test"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
variable "module_name" {
|
||||
type = string
|
||||
const = true
|
||||
}
|
||||
|
||||
module "child" {
|
||||
source = "./modules/${var.module_name}"
|
||||
}
|
||||
@ -0,0 +1,2 @@
|
||||
resource "test_instance" "test" {
|
||||
}
|
||||
Loading…
Reference in new issue