@go-to-k/cdkd 0.11.0 → 0.13.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 +19 -1
- package/dist/cli.js +537 -203
- package/dist/cli.js.map +4 -4
- package/dist/go-to-k-cdkd-0.13.0.tgz +0 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.11.0.tgz +0 -0
package/README.md
CHANGED
|
@@ -407,7 +407,6 @@ cdkd deploy -c env=staging -c featureFlag=true
|
|
|
407
407
|
cdkd deploy MyStack \
|
|
408
408
|
--app "npx ts-node app.ts" \
|
|
409
409
|
--state-bucket my-cdkd-state \
|
|
410
|
-
--region us-east-1 \
|
|
411
410
|
--verbose
|
|
412
411
|
|
|
413
412
|
# Show diff (what would change)
|
|
@@ -429,6 +428,13 @@ cdkd destroy --all --force
|
|
|
429
428
|
# Force-unlock a stale lock from interrupted deploy
|
|
430
429
|
cdkd force-unlock MyStack
|
|
431
430
|
|
|
431
|
+
# Inspect state-bucket info on demand (bucket name, region, source, schema version, stack count).
|
|
432
|
+
# Routine commands (deploy / destroy / etc.) no longer print the bucket banner by default —
|
|
433
|
+
# pass --verbose to surface it in their debug logs, or use this subcommand for an explicit answer.
|
|
434
|
+
cdkd state info
|
|
435
|
+
cdkd state info --json # JSON output for tooling
|
|
436
|
+
cdkd state info --state-bucket my-bucket # explicit bucket; reports Source: --state-bucket flag
|
|
437
|
+
|
|
432
438
|
# List stacks registered in the cdkd state bucket
|
|
433
439
|
cdkd state list
|
|
434
440
|
cdkd state ls --long # include resource count, last-modified, lock status
|
|
@@ -447,8 +453,20 @@ cdkd state show MyStack --json # raw {state, lock} JSON
|
|
|
447
453
|
cdkd state rm MyStack # confirmation prompt (y/N)
|
|
448
454
|
cdkd state rm MyStack --yes # skip confirmation
|
|
449
455
|
cdkd state rm StackA StackB --force # also bypass the locked-stack refusal
|
|
456
|
+
|
|
457
|
+
# Destroy a stack's AWS resources AND remove its state record, without
|
|
458
|
+
# requiring the CDK app (no synth — works from any working directory).
|
|
459
|
+
cdkd state destroy MyStack # per-stack confirmation prompt
|
|
460
|
+
cdkd state destroy MyStack OtherStack --yes
|
|
461
|
+
cdkd state destroy --all -y # every stack in the bucket
|
|
462
|
+
cdkd state destroy MyStack --region us-east-1
|
|
450
463
|
```
|
|
451
464
|
|
|
465
|
+
> `cdkd state destroy` vs `cdkd state rm`: `state destroy` deletes both the
|
|
466
|
+
> AWS resources and the state record (the equivalent of `cdkd destroy` minus
|
|
467
|
+
> the CDK-app dependency). `state rm` only forgets the state record and
|
|
468
|
+
> leaves the AWS resources intact.
|
|
469
|
+
|
|
452
470
|
### Concurrency Options
|
|
453
471
|
|
|
454
472
|
| Option | Default | Description |
|