@go-to-k/cdkd 0.131.0 → 0.132.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 +23 -14
- package/dist/cli.js +1686 -10
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -468,12 +468,21 @@ cdkd local start-api --from-state # substitute deployed env vars
|
|
|
468
468
|
|
|
469
469
|
One server per discovered API — authorizers, CORS configs, and stage
|
|
470
470
|
variables stay scoped to the owning API. Supports REST v1 + HTTP API +
|
|
471
|
-
Function URL with AWS_PROXY integrations
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
471
|
+
Function URL with **AWS_PROXY** integrations AND every REST v1
|
|
472
|
+
non-AWS_PROXY integration kind: **MOCK** (status-code selection via
|
|
473
|
+
request template + response-template VTL), **HTTP_PROXY** (verbatim
|
|
474
|
+
upstream forward with `RequestParameters` mappings), **HTTP**
|
|
475
|
+
(HTTP_PROXY + bidirectional VTL), and **AWS** Lambda non-proxy
|
|
476
|
+
(request + response VTL via the hand-rolled engine at
|
|
477
|
+
`src/local/vtl-engine.ts`).
|
|
478
|
+
Direct AWS-service integrations (S3 / SQS / SNS / DynamoDB / etc.) are
|
|
479
|
+
NOT emulated — deploy to AWS or use HTTP_PROXY to a local mock instead.
|
|
480
|
+
Authorizers: Lambda TOKEN / REQUEST, Cognito User Pool, HTTP v2 JWT
|
|
481
|
+
(JWKS-verified), and REST v1 `AuthorizationType: 'AWS_IAM'` (SigV4
|
|
482
|
+
signature verification only — IAM policy evaluation is not emulated;
|
|
483
|
+
see `docs/local-emulation.md`). CORS preflight (HTTP API v2
|
|
484
|
+
`CorsConfiguration` + REST v1 OPTIONS MOCK preflight from
|
|
485
|
+
`defaultCorsPreflightOptions`); hot reload via `--watch`;
|
|
477
486
|
deploy-state-backed env var substitution via `--from-state`.
|
|
478
487
|
|
|
479
488
|
Function URL `InvokeMode: RESPONSE_STREAM` is supported (issue #467):
|
|
@@ -483,14 +492,14 @@ Note that AWS's local RIE buffers the response — incremental chunk
|
|
|
483
492
|
delivery only manifests against the deployed Lambda runtime; locally
|
|
484
493
|
the response shape is correct but arrives in one block.
|
|
485
494
|
|
|
486
|
-
Routes whose integration cdkd cannot emulate (
|
|
487
|
-
|
|
488
|
-
integrations, WebSocket APIs, Function URLs with IAM
|
|
489
|
-
Lambda Arn references) **do not block boot** — the
|
|
490
|
-
a per-route `[warn]` summary and returns HTTP 501 +
|
|
491
|
-
JSON body if and when the route is hit. This lets
|
|
492
|
-
your API surface locally while the unsupported
|
|
493
|
-
deployed API.
|
|
495
|
+
Routes whose integration cdkd cannot emulate (REST v1 AWS integration
|
|
496
|
+
to a non-Lambda service, HTTP_PROXY / HTTP with non-literal `Uri`, HTTP
|
|
497
|
+
API v2 service integrations, WebSocket APIs, Function URLs with IAM
|
|
498
|
+
auth, cross-stack Lambda Arn references) **do not block boot** — the
|
|
499
|
+
server starts with a per-route `[warn]` summary and returns HTTP 501 +
|
|
500
|
+
the reason in the JSON body if and when the route is hit. This lets
|
|
501
|
+
you run the rest of your API surface locally while the unsupported
|
|
502
|
+
routes stay on the deployed API.
|
|
494
503
|
|
|
495
504
|
### `local run-task`
|
|
496
505
|
|