@go-to-k/cdkd 0.14.0 → 0.16.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 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.