Commit 42519e5
committed
Consolidate CDK custom-resources deps into root package.json
Merge custom-resources/package.json dependencies into the root
package.json and remove the separate package file. This simplifies
the Quick Start from two npm install commands to one.
The custom resource Lambda handlers use NodejsFunction with esbuild,
which resolves imports via standard Node module resolution — walking
up to the root node_modules works correctly.
Dependencies moved to root:
- @aws-crypto/sha256-js (bundled into UI Init Lambda)
- @aws-sdk/credential-provider-node (external, Lambda runtime)
- @aws-sdk/signature-v4 (bundled into UI Init Lambda)
- @smithy/protocol-http (bundled into UI Init Lambda)
Dependencies dropped (excluded via externalModules and provided by
Lambda Node.js 22 runtime):
- @aws-sdk/client-opensearch
- @aws-sdk/client-secrets-manager
Tested: cdk synth + full cdk deploy --all with all 4 custom resource
Lambdas (FGAC mapping, DQS datasource, OpenSearch App, UI Init)
completing successfully.1 parent 2398f80 commit 42519e5
5 files changed
Lines changed: 1611 additions & 1796 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments