Brains4Cloud
ESEN

Terraform

.terraform.lock.hcl (dependency lock file)

A file automatically generated by terraform init that pins the exact versions and checksums of the providers used, ensuring all team members and CI pipelines use exactly the same versions.

On the exam

In Terraform Associate the good practice tested is keeping it under version control (git), just like a package-lock.json. terraform init -upgrade updates the lock file while respecting the version constraints defined in required_providers.

Related terms

More Terraform terms

See the whole glossary →