https://github.com/bcochofel/terraform-tools
Terraform tools
https://github.com/bcochofel/terraform-tools
conftest opa regula terraform tflint
Last synced: 4 months ago
JSON representation
Terraform tools
- Host: GitHub
- URL: https://github.com/bcochofel/terraform-tools
- Owner: bcochofel
- License: mit
- Created: 2020-06-06T21:06:53.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-11-21T08:13:31.000Z (7 months ago)
- Last Synced: 2026-01-30T11:59:48.097Z (5 months ago)
- Topics: conftest, opa, regula, terraform, tflint
- Language: Dockerfile
- Size: 50.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Tools
[](https://github.com/pre-commit/pre-commit)
[](https://hub.docker.com/r/bcochofel/terraform-tools)
[](https://github.com/bcochofel/terraform-tools/blob/master/LICENSE)
[](https://github.com/bcochofel/terraform-tools/tags)
[](https://github.com/bcochofel/terraform-tools/issues/)
[](https://github.com/bcochofel/terraform-tools/network/)
[](https://github.com/bcochofel/terraform-tools/stargazers/)
Container image with Terraform tools for static code analysis.
## List of tools
The container supports the following tools:
- [arkade](https://github.com/alexellis/arkade)
- [tfenv](https://github.com/tfutils/tfenv)
- [terraform](https://developer.hashicorp.com/terraform/install)
- [TFlint](https://github.com/terraform-linters/tflint)
- [tflint-ruleset-azurerm](https://github.com/terraform-linters/tflint-ruleset-azurerm)
- [tflint-ruleset-aws](https://github.com/terraform-linters/tflint-ruleset-aws)
- [tflint-ruleset-google](https://github.com/terraform-linters/tflint-ruleset-google)
- [terraform-docs](https://github.com/terraform-docs/terraform-docs)
- [TFsec](https://github.com/aquasecurity/tfsec)
- [trivy](https://github.com/aquasecurity/trivy)
- [tgenv](https://github.com/tgenv/tgenv)
- [terragrunt](https://github.com/gruntwork-io/terragrunt)
- [checkov](https://github.com/bridgecrewio/checkov)
- [pre-commit](https://pre-commit.com/)
## Build Container
To build the container run:
```bash
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
```bash
docker build . --build-arg TERRAFORM_VERSION=1.9.0 -t terraform-tools:latest
```
## Test Container
You can test the container by running
```bash
docker run -it terraform-tools:latest terraform version
```
## References
- [GitHub Actions - Dockerfile support](https://docs.github.com/en/actions/sharing-automations/creating-actions/dockerfile-support-for-github-actions)