HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #140
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
The correct answer is A. True. If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform init. This will ensure that you use the same provider versions across different machines and runs.
Understand Terraform Basics
Question
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
Options
- ATrue
- BFalse
How the community answered
(26 responses)- A77% (20)
- B23% (6)
Explanation
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform init. This will ensure that you use the same provider versions across different machines and runs.
Topics
#dependency lock file#version constraints#terraform init#.terraform.lock.hcl
Community Discussion
No community discussion yet for this question.