-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

HashiCorp Terraform Associate (003) Exam Guide
By :

When Terraform configuration scripts are created to provision resources, there are two types of dependencies that need to be tracked: providers and modules. They have their own life cycles, as discussed already. Hence, it is necessary to track the right versions for providers and modules to ensure that you always work with the compatible versions for the current configuration, so that it does not get impacted by future version upgrades from the provider.
With the current features, Terraform can only track and work with different versions of providers but not modules. For modules, it always downloads and uses the latest version available.
Terraform can remember the versions for each dependency with the dependency lock file (.terraform.lock.hcl
). So, it can use the same version every time with the help of this file.
Modules will be discussed in the following chapters in more detail, but you can consider them to be remote scripts that...