Container image with Terraform tools for static code analysis.
The container supports the following tools:
- arkade
- tfenv
- terraform
- TFlint
- tflint-ruleset-azurerm
- tflint-ruleset-aws
- tflint-ruleset-google
- terraform-docs
- TFsec
- trivy
- tgenv
- terragrunt
- checkov
- pre-commit
To build the container run:
docker build . -t terraform-tools:latest
The Dockerfile uses build args, so if you want to build the image with specific version of terraform, for instance, you can run
docker build . --build-arg TERRAFORM_VERSION=1.9.0 -t terraform-tools:latest
You can test the container by running
docker run -it terraform-tools:latest terraform version