@go-to-k/cdkd 0.131.0 → 0.132.1

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
@@ -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; Lambda TOKEN / REQUEST,
472
- Cognito User Pool, HTTP v2 JWT authorizers (JWKS-verified), and REST v1
473
- `AuthorizationType: 'AWS_IAM'` (SigV4 signature verification only — IAM
474
- policy evaluation is not emulated; see `docs/local-emulation.md`); CORS
475
- preflight (HTTP API v2 `CorsConfiguration` + REST v1 OPTIONS MOCK
476
- preflight from `defaultCorsPreflightOptions`); hot reload via `--watch`;
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 (non-AWS_PROXY REST v1
487
- types other than the MOCK CORS preflight subset, HTTP API v2 service
488
- integrations, WebSocket APIs, Function URLs with IAM auth, cross-stack
489
- Lambda Arn references) **do not block boot** — the server starts with
490
- a per-route `[warn]` summary and returns HTTP 501 + the reason in the
491
- JSON body if and when the route is hit. This lets you run the rest of
492
- your API surface locally while the unsupported routes stay on the
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