Ensure the following Prereqs are installed first (can use brew on Mac/Linux or Chocolatey on Windows)
- Terraform Docs - for formmating terraform documentation
brew install terraform-docs
- findutils - Needed for scripts running on MacOSX
brew install findutils
We provide a makefile to ensure consistency and provide simplicity. It is strongly advised, both when planning and applying terraform, that this is done via the makefile.
The make pre-commit
command this will format all terraform code, and re-create all README.md files. This should be run before every commit to keep the code base clean.
To initialise the S3 backend, cd to infrastructure folder and run
terraform init -backend-config=backend.conf
The following commands currently exist in the make file:
make pre-commit
-> runs both themake generate-docs
andmake format-all
commands.
The details on how to run this terraform process on a new AWS account can be found on our confluence guides found here