Skip to content

Commit bc637ff

Browse files
committed
add many module
1 parent d5b01de commit bc637ff

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

testdata/manymodules/main.tf

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
terraform {
2+
required_providers {
3+
coder = {
4+
source = "coder/coder"
5+
}
6+
}
7+
}
8+
9+
module "one" {
10+
source = "./one"
11+
}
12+
13+
module "two" {
14+
source = "./two"
15+
}
16+
17+
locals {
18+
foo = "main"
19+
}
20+
21+
data "coder_parameter" "mainquestion" {
22+
name = "Two Question"
23+
description = "From module 2"
24+
type = "string"
25+
default = local.foo
26+
}

testdata/manymodules/one/one.tf

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
terraform {
2+
required_providers {
3+
coder = {
4+
source = "coder/coder"
5+
}
6+
}
7+
}
8+
9+
locals {
10+
foo = "one"
11+
}
12+
13+
data "coder_parameter" "onequestion" {
14+
name = "One Question"
15+
description = "From module 1"
16+
type = "string"
17+
default = local.foo
18+
}

testdata/manymodules/two/two.tf

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
terraform {
2+
required_providers {
3+
coder = {
4+
source = "coder/coder"
5+
}
6+
}
7+
}
8+
9+
locals {
10+
foo = "two"
11+
}
12+
13+
data "coder_parameter" "twoquestion" {
14+
name = "Two Question"
15+
description = "From module 2"
16+
type = "string"
17+
default = local.foo
18+
}

0 commit comments

Comments
 (0)