Spin up Docker containers using Terraform.
This project can install most dependencies automatically using a package manager, so please make sure they are installed.
- Windows: Chocolatey
- MacOS: Homebrew
Now run make install and most tools will be installed for you.
Warning
pre-commit and Checkov need to be installed manually on Windows.
The Pre-Commit framework is used to manage and install pre-commit hooks on your local machine. After cloning this repository you can run make precommit_install to initialize the hooks. This only needs to be done once after cloning.
The make chores command will automatically update documentation using Terraform-Docs, and will run automatic formatting.
This project uses Trivy and Checkov for security scanning. You can run make test_security to run both tools, while make test_trivy and make test_checkov run each component on its own.
To run TFLint use the command make test_tflint.
It is possible to automatically apply some fixes, but these should be reviewed before running. If you are comfortable with all of the results from make test_tflint being fixed automatically then run make fix_tflint.
- Use docker-compose specifically for exporters
- node-exporter
- nodejs
- mongodb
- elasticsearch
- redis
- Reinstate ansible terraform provider
- Takes care of inventory and remote state (e.g.,
terraform destroy)
- Takes care of inventory and remote state (e.g.,
- Reorganize repo into top-level directories
ansibledockerterraform