Skip to main content
Preview the changes that will be made to your infrastructure.

Usage

Aliases

  • plan

Description

The diff command synthesizes your configuration and runs terraform plan to show what changes would be made to your infrastructure. If no stack is specified, it operates on all stacks.

Options

Examples

Basic Usage

Specific Stack

Skip Synthesis

Use when you’ve already run tfts synth:

Refresh Only

Only update state without planning changes:

Target Specific Resources

Output

The command shows Terraform’s plan output, including:
  • Resources to be created (+)
  • Resources to be updated (~)
  • Resources to be destroyed (-)
  • Resource attributes that will change

Automatic Initialization

If the stack hasn’t been initialized, tfts diff automatically runs terraform init before planning.