Terraform Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:


The command creates a .terraform directory, which contains a "plugins" sub-directory.
The command creates a .terraform directory, which contains a "plugins" sub-directory.
=Configuration File Formatting=
terraform fmt
Formats all .tf in the current directory. Formatting enables standardization.

Revision as of 20:51, 13 November 2019

Internal

Version

terraform version

Help

terraform --help
terraform <command> --help

Initialization

The initialization operation initializes various local settings that will be used by subsequent commands. The command also downloads provider binaries. The command needs to be re-run if new modules are set or changed, or backend configuration changes.

terraform init

The command creates a .terraform directory, which contains a "plugins" sub-directory.

Configuration File Formatting

terraform fmt

Formats all .tf in the current directory. Formatting enables standardization.