Interview Prep/Real-World Interview/Terraform and Ansible

What does `terraform init` do?

BeginnerConceptTerraform and Ansible
Answer

It configures the backend, downloads providers (recording them in .terraform.lock.hcl) and downloads modules. Run it again after changing the backend, providers or module sources.

All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible