You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -183,6 +184,7 @@ There are several [pre-commit](https://pre-commit.com/) hooks to keep Terraform
183
184
|`terraform_docs_without_aggregate_type_defaults`| Inserts input and output documentation into `README.md` without aggregate type defaults. Hook notes same as for [terraform_docs](#terraform_docs) |
184
185
|`terraform_docs`| Inserts input and output documentation into `README.md`. Recommended. [Hook notes](#terraform_docs) |
185
186
|`terraform_fmt`| Rewrites all Terraform configuration files to a canonical format. [Hook notes](#terraform_docs) |
187
+
|`terraform_providers_lock`| Updates provider signatures in [dependency lock files](https://www.terraform.io/docs/cli/commands/providers/lock.html). [Hook notes](#terraform_providers_lock)
186
188
|`terraform_tflint`| Validates all Terraform configuration files with [TFLint](https://github.com/terraform-linters/tflint). [Available TFLint rules](https://github.com/terraform-linters/tflint/tree/master/docs/rules#rules). [Hook notes](#terraform_tflint). |
187
189
|`terraform_tfsec`| [TFSec](https://github.com/liamg/tfsec) static analysis of terraform templates to spot potential security issues. [Hook notes](#terraform_tfsec) |
188
190
|`terraform_validate`| Validates all Terraform configuration files. [Hook notes](#terraform_validate) |
@@ -342,6 +344,44 @@ Example:
342
344
343
345
**Warning:** If you use Terraform workspaces, DO NOT use this workaround ([details](https://github.com/antonbabenko/pre-commit-terraform/issues/203#issuecomment-918791847)). Wait to [`force-init`](https://github.com/antonbabenko/pre-commit-terraform/issues/224) option implementation
344
346
347
+
### terraform_providers_lock
348
+
349
+
1. The hook requires Terraform 0.14 or later.
350
+
351
+
1. The hook invokes two operations that can be really slow:
352
+
`terraform init` (in case`.terraform` directory is not initialised)
353
+
and `terraform providers lock`. Both operations require downloading
354
+
data from remote Terraform registries, and not all of that
355
+
downloaded data or meta-data is currently being cached by Terraform.
0 commit comments