terraform init
beginner Prepare a working directory: download providers and modules and connect the state backend.
Example
terraform init
# Quieter output in CI
terraform init -input=false -no-color
Initializing the backend...
Initializing provider plugins...
- Installing hashicorp/aws v6.18.0...
Terraform has been successfully initialized!
Tip: Run it after cloning a repo and whenever you change providers, modules or the backend block.