@go-to-k/cdkd 0.68.0 → 0.70.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 +18 -0
- package/dist/cli.js +976 -146
- package/dist/cli.js.map +4 -4
- package/dist/go-to-k-cdkd-0.70.0.tgz +0 -0
- package/dist/index.js +56 -34
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.68.0.tgz +0 -0
package/README.md
CHANGED
|
@@ -585,6 +585,16 @@ Requires Docker. v1 supports Node.js and Python runtimes (`nodejs18.x` /
|
|
|
585
585
|
`nodejs20.x` / `nodejs22.x` / `python3.11` / `python3.12` / `python3.13`);
|
|
586
586
|
other runtimes follow in subsequent PRs.
|
|
587
587
|
|
|
588
|
+
**Container Lambdas (PR 5 of #224)** — `lambda.DockerImageFunction(...)` /
|
|
589
|
+
`Code.ImageUri` is supported alongside ZIP Lambdas. cdkd reads the
|
|
590
|
+
function's local `Dockerfile` from `cdk.out` and runs `docker build`
|
|
591
|
+
locally before invoking. When no asset matches (typically: invoking a
|
|
592
|
+
stack deployed elsewhere), cdkd falls back to `docker pull` from
|
|
593
|
+
ECR — same-account / same-region only in v1; cross-account /
|
|
594
|
+
cross-region is deferred to a follow-up PR. `Architectures: [x86_64]` /
|
|
595
|
+
`[arm64]` are honored via `--platform` so an arm64 host running an
|
|
596
|
+
x86_64 Lambda doesn't hit emulation.
|
|
597
|
+
|
|
588
598
|
```bash
|
|
589
599
|
# Invoke by CDK display path (single-stack apps may omit the prefix)
|
|
590
600
|
cdkd local invoke MyStack/MyApi/Handler
|
|
@@ -607,6 +617,14 @@ cdkd local invoke MyStack/Handler --assume-role arn:aws:iam::123456789012:role/M
|
|
|
607
617
|
|
|
608
618
|
# Attach a Node debugger
|
|
609
619
|
cdkd local invoke MyStack/Handler --debug-port 9229
|
|
620
|
+
|
|
621
|
+
# After `cdkd deploy`, recover intrinsic-valued env vars (Ref / Fn::GetAtt
|
|
622
|
+
# / Fn::Sub) from cdkd's S3 state instead of dropping them. Off by default
|
|
623
|
+
# — keeps the local-only / unscoped flow safe; opt in when you want the
|
|
624
|
+
# handler to see the deployed physical IDs (S3 bucket names, DDB table
|
|
625
|
+
# names, IAM role ARNs, ...). Disambiguate with `--stack-region <region>`
|
|
626
|
+
# when the same stack name has state in multiple regions.
|
|
627
|
+
cdkd local invoke MyStack/Handler --from-state
|
|
610
628
|
```
|
|
611
629
|
|
|
612
630
|
See [docs/cli-reference.md](docs/cli-reference.md#local-invoke-run-lambda-functions-locally)
|