Skip to content

Commit

Permalink
Merge pull request #189 from cisagov/improvement/add_terraform-docs_c…
Browse files Browse the repository at this point in the history
…onfiguration

Add a configuration file for `terraform-docs`
  • Loading branch information
mcdonnnj authored Nov 29, 2023
2 parents 6397a1c + c2b4c6c commit ca595f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
formatter: markdown table
output:
file: README.md
mode: inject
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
settings:
anchor: false
html: false
lockfile: false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module "example" {

- [Basic usage](https://github.com/cisagov/skeleton-tf-module/tree/develop/examples/basic_usage)

<!-- BEGIN_TF_DOCS -->
## Requirements ##

| Name | Version |
Expand Down Expand Up @@ -73,6 +74,7 @@ No modules.
| id | The EC2 instance ID. |
| private\_ip | The private IP of the EC2 instance. |
| subnet\_id | The ID of the subnet where the EC2 instance is deployed. |
<!-- END_TF_DOCS -->

## Notes ##

Expand Down

0 comments on commit ca595f9

Please sign in to comment.