@go-to-k/cdkd 0.147.2 → 0.149.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/dist/cli.js +18703 -18463
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -306,6 +306,8 @@ cdkd state info --state-bucket my-bucket # explicit bucket; reports Source: --s
|
|
|
306
306
|
cdkd state list
|
|
307
307
|
cdkd state ls --long # include resource count, last-modified, lock status
|
|
308
308
|
cdkd state list --json # JSON output (alone, or combined with --long)
|
|
309
|
+
cdkd state list --tree # parent → child stack tree (nested stacks; #555 A3)
|
|
310
|
+
cdkd state list --tree --json # tree as nested JSON
|
|
309
311
|
|
|
310
312
|
# List resources of a single stack from state
|
|
311
313
|
cdkd state resources MyStack # aligned columns: LogicalID, Type, PhysicalID
|
|
@@ -314,7 +316,9 @@ cdkd state resources MyStack --json # full JSON array
|
|
|
314
316
|
|
|
315
317
|
# Show full state record for a stack (metadata, outputs, all resources incl. properties)
|
|
316
318
|
cdkd state show MyStack
|
|
317
|
-
cdkd state show MyStack --json
|
|
319
|
+
cdkd state show MyStack --json # raw {state, lock} JSON
|
|
320
|
+
cdkd state show MyParent --show-nested # recursively show every nested-stack child (#555 A4)
|
|
321
|
+
cdkd state show MyParent --show-nested --json # tree as nested {state, lock, children: [...]} JSON
|
|
318
322
|
|
|
319
323
|
# Orphan one or more RESOURCES from cdkd's state (does NOT delete AWS resources).
|
|
320
324
|
# Per-resource, mirrors aws-cdk-cli's `cdk orphan --unstable=orphan`.
|
|
@@ -585,11 +589,16 @@ the offending resources (or accept abandoning them) first. Nested
|
|
|
585
589
|
[#464](https://github.com/go-to-k/cdkd/issues/464) PR B1: `cdkd export`
|
|
586
590
|
recursively walks the cdkd state tree, validates every parent → child
|
|
587
591
|
link, and surfaces the full leaf-first migration scope to the user;
|
|
588
|
-
the CFn-side
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
592
|
+
the CFn-side per-stack IMPORT loop submission itself is deferred to
|
|
593
|
+
PR B2 (the original "one atomic `--include-nested-stacks` IMPORT
|
|
594
|
+
changeset" design was found infeasible by the 2026-05-24 AWS spike —
|
|
595
|
+
AWS rejects that flag combination with
|
|
596
|
+
`ValidationError: IncludeNestedStacks is not supported for changeSet type: IMPORT`;
|
|
597
|
+
see [docs/design/464-nested-stacks-export-import.md](docs/design/464-nested-stacks-export-import.md)
|
|
598
|
+
§4.0), so the command warns on `--dry-run` / hard-errors on real run
|
|
599
|
+
with a clear pointer + workaround (keep on cdkd, or destroy children
|
|
600
|
+
leaf-first via `cdkd state destroy <child>` and re-export the
|
|
601
|
+
flattened parent). Fresh `cdkd deploy` of nested
|
|
593
602
|
stacks works via [#459](https://github.com/go-to-k/cdkd/issues/459).
|
|
594
603
|
|
|
595
604
|
```bash
|