Introduction
Provider versioning in Terraform is a critical aspect of infrastructure management that often gets overlooked until something breaks. The question isn’t whether to pin provider versions, but where and how to pin them effectively. This article explores the two main approaches: pinning at the composition level versus pinning at base/root modules, and provides guidance on when to use each strategy.
Understanding provider versioning strategies
Base/root module pinning
In this approach, you specify provider version constraints directly in your base modules or root configurations:
[Read More]