Skip to content
Captain's Academy0
← Terraform sea chart
Island 3 · Core workflow · Port 3.2

terraform init

Ask the Captain
Instagram
The first command in every folder. Always.
You'll learn to

explain what init does (backend, providers in .terraform, modules, lock file) and when to run it again

Recap

  1. 1init sets up the backend, downloads providers and modules, writes the lock file
  2. 2Safe to run again. Re-run after cloning, or when providers, modules or backend change
  3. 3-upgrade · -reconfigure · -migrate-state
Check yourself

You added a new provider to the configuration. What do you run first?

3.2

Stamp this lesson

Watched it and passed the check? Mark it in your logbook.