@go-to-k/cdkd 0.36.0 → 0.38.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
@@ -208,8 +208,15 @@ alias cdkd="node $(pwd)/dist/cli.js"
208
208
 
209
209
  ## Quick Start
210
210
 
211
+ > **First-time setup**: cdkd requires a one-time `cdkd bootstrap` per AWS
212
+ > account before any other command will work — it creates the S3 state
213
+ > bucket (`cdkd-state-{accountId}`) that cdkd uses to track deployed
214
+ > resources. This is separate from `cdk bootstrap` (which sets up the
215
+ > CDK asset bucket / ECR repo and is also required — see
216
+ > [Prerequisites](#prerequisites)).
217
+
211
218
  ```bash
212
- # Bootstrap (creates S3 state bucket - only needed once per account/region)
219
+ # Bootstrap (creates S3 state bucket — one-time setup, once per AWS account)
213
220
  cdkd bootstrap
214
221
 
215
222
  # List stacks in the CDK app
@@ -283,10 +290,16 @@ cdkd deploy MyStack \
283
290
  cdkd diff MyStack
284
291
 
285
292
  # Detect drift between cdkd state and AWS reality (state-only; no synth)
286
- # Exits 0 with no drift, 1 when drift is detected, 2 on error.
293
+ # Exits 0 with no drift, 1 when drift is detected, 2 on partial revert failure.
287
294
  cdkd drift MyStack
288
295
  cdkd drift --all --json
289
296
 
297
+ # Resolve drift: state ← AWS (catch up state with manual console changes)
298
+ cdkd drift MyStack --accept --yes
299
+
300
+ # Resolve drift: AWS ← state (push state values back into AWS via provider.update)
301
+ cdkd drift MyStack --revert --yes
302
+
290
303
  # Dry run (plan only, no changes)
291
304
  cdkd deploy --dry-run
292
305