aws_resource_diff
Dry-run an AWS resource update by simulating a JSON Patch in memory, returning before/after states and changed paths without mutating AWS.
Instructions
Dry-run a CCAPI update: fetch the current resource state, simulate applying a JSON Patch in memory, and return before/after plus a flat list of changed paths. No mutation is sent to AWS. Use this before aws_resource_update to verify the patch does what you expect. Supports the add/remove/replace subset of RFC 6902 (covers the vast majority of CCAPI updates); 'move'/'copy'/'test' are rejected at schema validation -- use aws_resource_update directly if you need those (CCAPI accepts them, this preview tool just doesn't simulate them locally).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"typeName": "<typeName>",
"identifier": "<identifier>",
"patchDocument": "<patchDocument>"
},
"name": "aws_resource_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Override session region for this call. | |
| profile | No | Override session profile for this call. | |
| typeName | Yes | CloudFormation type name, e.g. 'AWS::Lambda::Function'. | |
| timeoutMs | No | Timeout in milliseconds. Default 60000. | |
| identifier | Yes | Primary identifier for the resource. | |
| patchDocument | Yes | RFC 6902 JSON Patch (add/remove/replace subset); 'add' and 'replace' must carry a `value`. For move/copy/test, use aws_resource_update directly. |