Chapter 44 - Manage Terraform Providers
terraform provider
will allow you to check the providers
Protip: Running terraform version
inside of an initialized directory will give you the Terraform version AND the provider versions.
Providers lock
You can create the .terraform.lock.hcl file by running the terraform providers lock
command.
This will not download any providers, but create the lock file based on the terraform configuration.
Generating the hcl lock file for multiple platforms
terraform providers lock -platform=windows_amd64 -platform=darwin_amd64 -platform=linux_amd64
will generate a terraform.lock.hcl file for all versions of these operating systems.
Terraform Providers Mirror
The terraform providers mirror
command downloads the providers required for the current configuration and copies them into a directory in the local filesystem.