-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
32 lines (25 loc) · 800 Bytes
/
variables.tf
File metadata and controls
32 lines (25 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
variable "files" {
description = <<EOS
The list of files for the modules.
`path` and `include` patterns are passed to `fileset` terraform function.
The syntax is as described [here](https://www.terraform.io/docs/language/functions/fileset.html).
`exclude` patterns are passed to `regexall` terraform function.
The syntax is as described [here](https://www.terraform.io/docs/language/functions/regexall.html).
EOS
type = list(object({
path = string
include = optional(list(string))
exclude = optional(list(string))
}))
}
variable "modules" {
description = <<EOS
The list of sub-modules.
Each module will be included output files map under the directory `node_modules/$${name}`.
EOS
default = []
type = list(object({
name = string
files = map(string)
}))
}