What does 'terraform init' command do?

Experience Level: Junior
Tags: Terraform

Answer

This command initializes a working directory containing Terraform configuration files. It installs the referenced modules and plugins.

During init, the root configuration directory is consulted for backend configuration and the chosen backend is initialized using the given configuration settings.

Re-running init with an already-initialized backend will update the working directory to use the new backend settings.

Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself