Usage
Aliases
plan
Description
Thediff 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
| Option | Type | Description | Default |
|---|---|---|---|
--app | string | Command to run the tfts app | From cdktf.json |
--output | string | Output directory | cdktf.out |
--skipSynth | boolean | Skip synthesis step | false |
--refreshOnly | boolean | Only refresh state, no changes | false |
--target | string | Target specific resources (repeatable) | - |
Examples
Basic Usage
Specific Stack
Skip Synthesis
Use when you’ve already runtfts 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.