Skip to content

Commit

Permalink
Merge pull request #2027 from DFE-Digital/chore/document-terraform-li…
Browse files Browse the repository at this point in the history
…nting

Document the process to lint Terraform docs
  • Loading branch information
Laura Porter authored Dec 10, 2024
2 parents a01be23 + dc5602b commit b6076f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/infrastructure-and-terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ directory.

Read the [In-depth Terraform documentation](/terraform/README.md)

## Linting Terraform documentation

Occasionally, a PR might fail CI on Github at the Terraform / Validate
step. To lint the Terraform documentation and get this check passing:

1. Install terraform-docs `brew install terraform-docs`
1. Switch onto the failing branch (usually a Renovate branch)
1. `cd` into the terraform directory in the repo
1. Run `terrform-docs .`
1. Commit the changes on the branch

## Tfvar files

We use `tfvar` files to store the secrets and settings used to manage our
Expand Down

0 comments on commit b6076f9

Please sign in to comment.