Provider Best Practices

An overview of some tips and tricks for Terraform providers.

When you ran terraform init, Terraform downloaded the latest versions of all of the providers that you used in your project. You may have noticed the warning message that Terraform printed out:

Press + to interact
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform creates a special file that is used to record the version of all of the providers used. This is so that when terraform init is run again (potentially on another ...

Access this course and 1400+ top-rated courses and projects.