-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.terraform-docs.yml
More file actions
55 lines (45 loc) · 1.14 KB
/
.terraform-docs.yml
File metadata and controls
55 lines (45 loc) · 1.14 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
formatter: markdown table
sections:
show:
- providers
- requirements
- inputs
- resources
- outputs
- data-sources
- modules
# this `content` string is implemented as a golang template https://pkg.go.dev/text/template
# updates here correspond to `{{ .Content }}` in `output.template` setting below
content: |-
{{ $warning := `<!--WARNING: GENERATED CONTENT with terraform-docs, e.g.
'terraform-docs --config "$(git rev-parse --show-toplevel)/.terraform-docs.yml" .'
Manually updating sections between TF_DOCS tags may be overwritten.
See https://terraform-docs.io/user-guide/configuration/ for more information.
-->`}}
{{- $warning }}
{{ .Providers }}
{{ $warning }}
{{ .Requirements }}
{{ $warning }}
{{ .Inputs }}
{{ $warning }}
{{ .Modules }}
{{ $warning }}
{{ .Resources }}
{{ $warning }}
{{ .Outputs }}
output:
file: README.md
mode: inject
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
sort:
enabled: true
by: required
settings:
indent: 2
default: true
required: true
type: true