Note: Versions of Terraform before the 1.0 major release often contained breaking changes between minor versions. Upgrading from version 1.14.0 to 2.0.0 could introduce significant changes that will prevent your configuration from running properly. Major release - Includes significant changes, deprecation of features, and breaking changes.Īs you can imagine, updating to a new patch version, say going from version 1.5.1 to 1.5.2, is unlikely to impact your configurations.Minor release - Includes new features, enhancements, and deprecation announcement.Patch release - Includes bug fixes only.The generally accepted practice for updating an identifier on a release is: Semantic versioning is used in software releases and is composed of three numbered identifiers separated by dots: - e.g. To best understand where and how to control versioning, we first need to talk about semantic versioning and how it applies to Terraform. Controlling what versions are used for the Terraform Core executable, provider plugins, and modules is key to having a stable and consistent experience. However, new versions may change existing functionality or replace certain arguments, resulting in a configuration that won't generate a successful terraform plan. It can be tempting to jump on the latest version of Terraform to use a new feature or upgrade to the latest provider versions to leverage new resources and data sources. Why Do You Need Terraform Versioning?Įach new release of Terraform brings with it new features and functionality, but also potential breaking changes. But what if something outside your code changes? How do you minimize the risk of external updates and improve the reliability of your IaC? One possible mitigation is using Terraform version constraints. The IaC you write today should work tomorrow in the same way it does now. When working with any type of code, stability and consistency are important, and Infrastructure as Code is no exception.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |