Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion cdk/lib/eks-cluster-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,24 @@ function handler(event) {

new s3deploy.BucketDeployment(this, 'AuthUiDeployment', {
sources: [
s3deploy.Source.asset('../auth-ui'),
// Ship only the static runtime files. The auth-ui is vanilla JS with no
// build step; node_modules holds dev-only deps (jest/eslint/puppeteer,
// ~110MB) that are never served. Uploading them flooded the deployment
// Lambda (thousands of small files) and exceeded its timeout, blocking
// CREATE_COMPLETE. Excluding them drops the upload to ~265KB / 7 files.
s3deploy.Source.asset('../auth-ui', {
exclude: [
'node_modules',
'node_modules/**',
'tests',
'tests/**',
'package.json',
'package-lock.json',
'.git',
'.gitignore',
'**/.DS_Store',
],
}),
],
destinationBucket: authUiBucket,
distribution,
Expand Down
8 changes: 4 additions & 4 deletions cdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@types/jest": "30.0.0",
"@types/node": "24.12.0",
"aws-cdk": "2.1114.1",
"aws-cdk": "^2.1128.1",
"cdk-nag": "2.37.55",
"jest": "30.3.0",
"ts-jest": "29.4.6",
Expand All @@ -26,4 +26,4 @@
"constructs": "10.6.0"
},
"license": "MIT-0"
}
}
Loading