plan

This command generates the planfile:

  • initialize Terraform
  • select workspace
  • run plan
@terraform plan {
    workspace = "dev"
    config = "backend.prod.config"
    create = true
    variables = { configuration: "Release" }
}

Argument Reference

The following arguments are supported:

  • workspace - (Optional) Workspace to use. Use default if not provided.
  • config - (Optional) Set configuration for init.
  • create - (Optional) Create workspace if it does not exist.
  • variables - (Optional) Variables for plan (see Terraform Variables).
Last updated on