terraform init
terraform init
Run this first, in the folder holding your
.tf files. It downloads the providers the configuration needs and creates the .terraform directory. Safe to re-run - do so any time you add a provider or module.