@go-to-k/cdkd 0.13.0 → 0.15.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 +10 -1
- package/dist/cli.js +1339 -32
- package/dist/cli.js.map +4 -4
- package/dist/go-to-k-cdkd-0.15.0.tgz +0 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.13.0.tgz +0 -0
package/README.md
CHANGED
|
@@ -428,6 +428,15 @@ cdkd destroy --all --force
|
|
|
428
428
|
# Force-unlock a stale lock from interrupted deploy
|
|
429
429
|
cdkd force-unlock MyStack
|
|
430
430
|
|
|
431
|
+
# Adopt already-deployed AWS resources into cdkd state.
|
|
432
|
+
# Reads the CDK app to find logical IDs, types, and dependencies; uses the
|
|
433
|
+
# `aws:cdk:path` tag (or explicit overrides) to find each resource in AWS.
|
|
434
|
+
cdkd import MyStack --app "npx ts-node app.ts" --dry-run # preview
|
|
435
|
+
cdkd import MyStack --app "npx ts-node app.ts" --yes # auto-import via tags
|
|
436
|
+
cdkd import MyStack --resource MyBucket=my-bucket-name --yes # explicit override (repeatable)
|
|
437
|
+
cdkd import MyStack --resource-mapping mapping.json --yes # CDK CLI mapping-file compat
|
|
438
|
+
cdkd import MyStack --force # overwrite existing state
|
|
439
|
+
|
|
431
440
|
# Inspect state-bucket info on demand (bucket name, region, source, schema version, stack count).
|
|
432
441
|
# Routine commands (deploy / destroy / etc.) no longer print the bucket banner by default —
|
|
433
442
|
# pass --verbose to surface it in their debug logs, or use this subcommand for an explicit answer.
|
|
@@ -628,7 +637,7 @@ After deployment, outputs are resolved and saved to the S3 state file:
|
|
|
628
637
|
**Key differences from CloudFormation**:
|
|
629
638
|
|
|
630
639
|
- CloudFormation: Outputs accessible via `aws cloudformation describe-stacks`
|
|
631
|
-
- cdkd: Outputs saved in S3 state file (e.g., `s3://bucket/cdkd/MyStack/state.json`)
|
|
640
|
+
- cdkd: Outputs saved in S3 state file (e.g., `s3://bucket/cdkd/MyStack/us-east-1/state.json`)
|
|
632
641
|
- Both resolve intrinsic functions (Ref, Fn::GetAtt, etc.) to actual values
|
|
633
642
|
|
|
634
643
|
## Testing
|