This simple Python script will crawl your modules.json
generated by terraform init
command in order to verify that all modules are using the same version.
It's main purpose is to be used within CI/CD pipeline.
python3 main.py PATH_TO_MODULES_JSON
Docker image can be used to verify multiple module.json
files within a directory.
docker run --rm -it -v PATH_TO_YOUR_TERRAFORM_DIRECTORY:/tf docker.pkg.github.com/sysdogs/tfmodvercheck/tfmodvercheck:0.1.0