0 votes
in Terraform by
Explain the uses of Terraform CLI and list some basic CLI commands?

1 Answer

0 votes
by

The command-line interface to Terraform is via the terraform command, which accepts a variety of subcommands such as terraform init or terraform plan.

Common commands are listed below for Terraform:

  • terraform init: Prepare your working directory for other commands
  • terraform validate: Check whether the configuration is valid
  • terraform plan: Show changes required by the current configuration
  • terraform apply: Create or update infrastructure
  • terraform destroy: Destroy previously-created infrastructure

Related questions

0 votes
asked Apr 12, 2021 in Terraform by Robindeniel
0 votes
asked Apr 12, 2021 in Terraform by Robindeniel
...