...
/Initialize a Terraform Working Directory
Initialize a Terraform Working Directory
Learn when and how to initialize a terraform working directory.
We'll cover the following...
The command terraform init
is used to initialize the directory containing a Terraform configuration. Once we’ve written a configuration or cloned one from source control, this is the first command we run.
Operations of the terraform init
command
The terraform init
command performs operations to prepare the directory holding the configuration for use. In general, they’re as follows:
-
Prepare the state storage: Whether we’re using a local or remote back-end,
terraform init
prepares that back-end for use by ...