Exam4Training

Which command must you first run before performing further Terraform operations in a working directory?

Which command must you first run before performing further Terraform operations in a working directory?
A . terraform import
B . terraform workspace
C . terraform plan
D . terraform init

Answer: D

Explanation:

terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It initializes a working directory containing Terraform configuration files and downloads any required providers and modules. The other commands are used for different purposes, such as importing existing resources, switching between workspaces, generating execution plans, etc.

Exit mobile version