elysia-aws-lambda-deploy

Deploys Elysia.js applications to AWS Lambda's Node.js runtime with bundling and handler configuration.

2|Updated May 10, 2026
One-click install
npx skills add https://github.com/freedomw1987/tree_monstor --skill elysia-aws-lambda-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elysia-aws-lambda-deploy
Source: https://github.com/freedomw1987/tree_monstor/tree/main/skills/devops/elysia-aws-lambda-deploy
Command: npx skills add https://github.com/freedomw1987/tree_monstor --skill elysia-aws-lambda-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploying Elysia.js (a Bun-first web framework) to AWS Lambda's Node.js runtime introduces multiple non-obvious compatibility issues that cause frequent deployment failures and runtime errors, including handler resolution mistakes, missing crypto polyfills, CDK runtime mismatches, and undiagnosed API Gateway 500 errors.

Core Features & Use Cases

  • Full deployment workflow guidance: Covers bundling with Bun or esbuild, zip packaging, Lambda code upload, handler configuration, and CDK stack setup for production-ready serverless APIs.
  • Comprehensive troubleshooting: Provides fixes for common errors including ESM/CJS syntax errors, missing module errors, malformed handler names, crypto reference errors, and API Gateway issues that only occur when invoked via the gateway.
  • Production configuration support: Includes steps for ACM DNS validation, CORS setup for browser applications, binary response handling, and CDK drift resolution for existing infrastructure. Use case: A developer building an Elysia.js REST API can use this skill to deploy it to AWS Lambda with API Gateway in minutes, avoiding hours of debugging common runtime and configuration pitfalls.

Quick Start

Use the elysia-aws-lambda-deploy skill to bundle, package, and deploy your Elysia.js application to AWS Lambda with API Gateway, including all required configuration patches and CORS setup.

Frequently Asked Questions about elysia-aws-lambda-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an Elysia.js application to AWS Lambda without getting runtime errors?

Deploying Elysia.js to AWS Lambda requires resolving Node.js runtime compatibility issues by configuring bundler settings, aligning CDK runtime parameters, and implementing missing crypto polyfills for stable execution.

Why does my Elysia.js API return a 500 error when invoked through AWS API Gateway?

API Gateway 500 errors with Elysia.js typically stem from ESM/CJS syntax conflicts or malformed handler names, requiring bundler configuration adjustments and proper handler mapping to resolve.

Do I need a crypto polyfill when running Elysia.js on the AWS Lambda Node.js runtime?

Yes, implementing a crypto polyfill is necessary when running Elysia.js on AWS Lambda's Node.js runtime to prevent crypto reference errors caused by missing native modules available in Bun.

Can I use AWS CDK to deploy a serverless Elysia.js API with DNS validation?

Yes, AWS CDK supports deploying a serverless Elysia.js API by configuring infrastructure stacks including ACM DNS validation and CORS settings to achieve production-ready browser application support.

What is the best way to bundle a Bun-first web framework for AWS Lambda?

Bundling a Bun-first framework like Elysia.js for AWS Lambda is best achieved using Bun or esbuild to generate a compatible zip package that prevents missing module errors during deployment.