Skip to content

Commit 42519e5

Browse files
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

File tree

aws/cdk/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Deploy the Observability Stack to AWS managed services using CDK. This creates t
1414
```bash
1515
cd aws/cdk
1616
npm install
17-
cd custom-resources && npm install && cd ..
1817
cdk deploy --all
1918
```
2019

0 commit comments

Comments
 (0)