Forrest logo
back to the terraform tool

terraform-plan:tldr:c335a

terraform-plan: Specify values for input variables.
$ terraform plan -var '${name1}=${value1}' -var '${name2}=${value2}'
try on your machine

The command you provided is a Terraform command used to create an execution plan.

Here's a breakdown of the components of the command:

  • terraform plan: This is the basic terraform command to run the execution plan. When this command is executed, Terraform will analyze the current state of your infrastructure, compare it to the desired state defined in your Terraform configuration files, and generate an execution plan that shows what actions Terraform will take to achieve the desired state.

  • -var '${name1}=${value1}' -var '${name2}=${value2}': These are options to pass variable values to your Terraform configuration files. Variables in Terraform are used to customize the behavior of your infrastructure code. By using the -var flag followed by the variable name and value, you can pass these values to your Terraform configurations to override default values. In this case, ${name1} and ${name2} are placeholders for the actual variable names, and ${value1} and ${value2} are placeholders for the corresponding values you want to assign to those variables.

When running this command, you should replace ${name1}, ${name2}, ${value1}, and ${value2} with the actual variable names and their respective values you want to pass to your Terraform configurations.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the terraform tool