QuestionQ91

Terraform modules

Which argument can be specified in a module block to stop Terraform from updating the module’s configuration during an init or get operation?

  • A count
  • B lifecycle
  • C source
  • D version
Explanation

The version argument constrains the version of a module obtained from a Terraform registry. Setting an exact version pins the module and prevents selection of newer versions; Terraform documentation recommends explicit version constraints to avoid unexpected or unwanted changes. terraform init -upgrade and terraform get -update can only select versions permitted by that constraint.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!