thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

Dependency Lock File

Terraform's .terraform.lock.hcl file recording exact provider versions and checksums selected during init.

Definition

The lock file should be committed so all users and pipelines use identical provider builds. terraform init -upgrade updates selections within constraints.

Example

terraform init -upgrade moves the AWS provider to the newest allowed 5.x release.

Exam tip

Commit .terraform.lock.hcl; do not commit the .terraform directory.

Related terms