Initializing Your Working Directory
After creating your Terraform configuration file, initialize your working directory by running the following command:Provider Tiers
Terraform providers are organized into three tiers based on ownership and maintenance:Example: Terraform Initialization Output
When you runterraform init, Terraform displays the version of each provider plugin being installed. The following example shows the initialization process and output details:
The
terraform init command is safe to run repeatedly. It only updates the local plugin installation without modifying your deployed infrastructure.Understanding Provider Source Addresses
The provider name, such ashashicorp/local, is the source address Terraform uses to locate and download the plugin from the registry. This identifier consists of:
- An organizational namespace (
hashicorp) - A provider name (
local)
registry.terraform.io.

- Full source address:
registry.terraform.io/hashicorp/local - Simplified:
hashicorp/local
Without version constraints, Terraform installs the latest available version by default. Automatic updates may introduce breaking changes. Lock your configuration to a specific provider version to ensure stable and predictable deployments.
