It is recommended to use VS Code for the development of the reference architecture.
The extension that is used for Terraform development is hashicorp.terraform.
The .vscode
folder contains a settings.json
applies the canonial formatting on every .tf
and .tfvars
inside the workspace.
It is also recommended to install the pre-commit hook on your development machine. You can install the hook using these commands on Windows:
choco install python
pip install pre-commit
pre-commit install
The hook is configured in .pre-commit-config.yaml
.
The hooks calls terraform fmt
and terraform validate
on every git commit
.
In addition, there is a GitHub Workflow defined in .github/workflows/qualitygate.yml
that runs terraform fmt
and terraform validate
when a pull request is created.