The collection of essential tools for Terraform projects
7.8K
This repository provides a Docker image for a comprehensive Terraform toolkit. It bundles essential Terraform-related tools such as Terraform, Terragrunt, Checkov, TFDoc, TFLint, and Trivy to streamline infrastructure management, security checks, and linting.
The Docker image includes the following tools:
Make sure you have Docker installed on your system before using this image.
π₯ Pulling the Docker Image
The image repository: terraform-toolkitβ π¦
To pull the pre-built Docker image from Docker Hub:
docker pull ops4life/terraform-toolkit:latest
To run the container:
docker run -it ops4life/terraform-toolkit:latest
You can then use the following tools from within the container:
Run Terraform commands inside the container:
docker run -v $(pwd):/workspace -w /workspace ops4life/terraform-toolkit:latest terraform init
This command mounts your current working directory (pwd) into the containerβs /workspace directory and runs terraform init.
This repository includes several GitHub Actions workflows to automate testing, dependency updates, and release processes.
For detailed information about CI/CD workflows, see .github/workflows/README.mdβ .
This repository includes a comprehensive test suite to validate all tools in the Docker image.
# Navigate to test directory
cd test
# Test all tool versions
make test-versions
# Run full test suite
make test
# Run Terraform workflow
make init validate plan
# Run security scans
make security
For detailed testing instructions, see:
βββ .editorconfig # Editor configuration for consistent coding styles
βββ .github/ # GitHub workflows for CI/CD automation
β βββ ISSUE_TEMPLATE/ # Templates for GitHub issues
β βββ workflows/ # CI/CD pipelines (build, test, release)
β β βββ build-tf-toolkit-image.yaml # Multi-arch Docker build
β β βββ test-image.yaml # Image testing workflow
β β βββ release.yaml # Semantic release automation
β β βββ README.md # Workflow documentation
β βββ dependabot.yml # Automatic dependency updates
β βββ pull_request_template.md # Template for pull requests
βββ .gitignore # Files and directories to ignore in Git
βββ .pre-commit-config.yaml # Pre-commit hooks configuration
βββ .vscode/extensions.json # Recommended extensions for VSCode users
βββ CODEOWNERS # File to manage repository code owners
βββ Dockerfile # Dockerfile to build the image with the tools
βββ LICENSE # License for the project
βββ README.md # Documentation (you're reading this!)
βββ TEST_GUIDE.md # Comprehensive testing guide
βββ test/ # Test suite for Docker image
βββ main.tf # Sample Terraform configuration
βββ variables.tf # Variable definitions
βββ terragrunt.hcl # Terragrunt configuration
βββ Makefile # Test automation commands
βββ test-toolkit.sh # Comprehensive test script
βββ README.md # Test documentation
We welcome contributions! To get started:
This project is licensed under the terms of the MIT Licenseβ .
Content type
Image
Digest
sha256:c31004e9aβ¦
Size
368.1 MB
Last updated
about 2 hours ago
docker pull ops4life/terraform-toolkit