The dashboard couldn’t load user data for large datasets because AWS Lambda cannot return payloads over 6MB.
Also, since we’re using Node.js 22, the old aws-sdk
(v2) is no longer bundled, so we had to switch to AWS SDK v3 (@aws-sdk/client-s3
), which is already pre-installed in the Node.js 22 Lambda runtime.
The fix:
In AWS Console → S3 → Create bucket, name it:
user-data-for-dashboard-bucket
(Must match the name used in your Lambda code.)
Select the same region as your Lambda.
Leave Block Public Access enabled.