What does Terraform use the .terraform.lock.hc1 file for?

What does Terraform use the .terraform.lock.hc1 file for?
A . There is no such file
B . Tracking specific provider dependencies
C . Preventing Terraform runs from occurring
D . Storing references to workspaces which are locked

Answer: B

Explanation:

The .terraform.lock.hcl file is a new feature in Terraform 0.14 that records the exact versions of each provider used in your configuration. This helps ensure consistent and reproducible behavior across different machines and runs.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments