Zachary Loeber's Blog

Just another tool making, complexity eating, infrastructure and workload automating, DevOps soldier.

2025 08 04 224627 Vendoring Terraform Modules With Git Subtree

2025-08-04 4 min read Devops Git Terraform Cicd Zachary Loeber

Vendoring Terraform Modules with Git Subtree

(When I do it and why you probably shouldn’t)

Did you know you can vendor in third-party terraform modules in your projects?

NOTE Yes, I said vendoring. As in, copy the code entirely into your repo and commit it.

Before you close the tab and scream “but module versioning exists!”, let me explain why this technique may actually reduce complexity and increase reliability in some situations.

Continue reading