You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v2/ref-cli-cmd-diff.md
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,10 +63,50 @@ The path to the CloudFormation template to compare a CDK stack with\.
63
63
64
64
### Diff against the currently deployed stack named MyStackName<aname="ref-cli-cmd-diff-examples-1"></a>
65
65
66
+
The CDK CLI uses the following symbols in the diff output:
67
+
+`[+]` – Identifies code or resources that will be added if you deploy your changes\.
68
+
+`[-]` – Identifies code or resources that will be removed if you deploy your changes\.
69
+
+`[~]` – Identifies a resource or property that will be modified if you deploy your changes\.
70
+
71
+
The following is an example that shows a diff of local changes to a Lambda function:
72
+
66
73
```
67
-
$ cdk diff MyStackName --app='node bin/main.js'
74
+
$ cdk diff MyStackName
75
+
start: Building asset-hash:account-Region
76
+
success: Built asset-hash:account-Region
77
+
start: Publishing asset-hash:account-Region
78
+
success: Published asset-hash:account-Region
79
+
Hold on while we create a read-only change set to get a diff with accurate replacement information (use --no-change-set to use a less accurate but faster template-only diff)
0 commit comments