Commands for the Commvault Terraform Module

Updated

The Commvault provider resources are managed using a single primary command called Terraform. This primary command is used along with sub-commands.

The following table lists the sub-commands that are commonly used in the Commvault Terraform module.

Command

Description

Syntax

init

The terraform init command is used to initialize a working directory that contains the Terraform configuration file (.tf). This is the first command that is run after writing a new Commvault provider configuration. You can run this command more than once.

terraform init [options] [DIR]

plan

The terraform plan command is used to create an execution plan. This command performs a refresh, checks the state of the resources, and provides information about the actions that will be performed on the resources.

terraform plan [options] [dir]

apply

The terraform apply command is used to apply the changes (such as create and delete) to the resources in the configuration file.

terraform apply [options] [dir-or-plan]

To view a complete list of Terraform commands, in the Windows command prompt, run the following command:

terraform

To view help for a specific command, in the Windows command prompt, run the following command:

terraform <sub-command> -h

For detailed information about Terraform commands, go to the Terraform documentation website.