Terraform
Last updated
Last updated
is a formatter for Terraform.
You can enable the Terraform formatter with:
Terraform will never be auto-enabled. It must be enabled manually.
We currently support terraform validate
and terraform fmt
, but only fmt
is enabled by default when you add terraform
to your enabled list in trunk.yaml
. To enable validate
, add this to your trunk.yaml
:
Note: you must run terraform init
before running trunk check
with terraform validate
enabled (both locally, or on CI).
Terraform Trunk Code Quality
Trunk Code Quality's