boxlang-runtime-aws-lambda

Deserializes AWS events for BoxLang and invokes Lambda.bx run().

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill boxlang-runtime-aws-lambda-ortus-boxlang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-runtime-aws-lambda
Source: https://github.com/ortus-boxlang/skills/tree/main/boxlang-developer/runtime-aws-lambda
Command: npx skills add https://github.com/ortus-boxlang/skills --skill boxlang-runtime-aws-lambda-ortus-boxlang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

BoxLang developers need a reliable way to run and manage BoxLang applications on AWS Lambda, including proper handler wiring, event/response lifecycle, and environment management.

Core Features & Use Cases

  • Pre-built Java Lambda handler (LambdaRunner) that deserializes AWS events to BoxLang structs and serializes responses.
  • Lambda.bx convention and Application.bx lifecycle hooks enabling structured serverless apps with lifecycle events.
  • Multi-function routing support via headers (x-bx-function) for routing to specific functions, plus starter templates for local testing with SAM.

Quick Start

Set the Lambda handler to ortus.boxlang.runtime.aws.LambdaRunner::handleRequest and deploy the starter project to begin running BoxLang on AWS Lambda.

Frequently Asked Questions about boxlang-runtime-aws-lambda

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

FAQPage Schema
How do I run BoxLang applications on AWS Lambda?

A Java-based Lambda runtime is required to run BoxLang apps on AWS Lambda. It deserializes AWS events into BoxLang structs, invokes Lambda.bx run(), and serializes responses back to AWS. You set the Lambda handler to LambdaRunner::handleRequest and deploy.

Does AWS Lambda support BoxLang lifecycle hooks and multi-function routing?

AWS Lambda supports BoxLang lifecycle hooks through Application.bx and multi-function routing via the x-bx-function header. This allows you to route incoming AWS events to specific functions within a single deployment package, enabling structured serverless applications with proper lifecycle management.

What files and environment variables do I need to configure for a BoxLang serverless deployment?

You need a deployment package root containing Lambda.bx and Application.bx. You must also configure environment variables including BOXLANG_LAMBDA_CLASS, BOXLANG_LAMBDA_CONFIG, and BOXLANG_LAMBDA_CONNECTION_POOL_SIZE to properly wire the Lambda runtime handler.

Can I test BoxLang Lambda functions locally before deploying to AWS?

You can test BoxLang Lambda functions locally using AWS SAM and the provided starter templates. This allows you to simulate AWS events, verify event deserialization into BoxLang structs, and validate multi-function routing before deploying to the cloud.

What is the best way to handle AWS event deserialization for a BoxLang serverless app?

The best way to handle AWS event deserialization for a BoxLang serverless app is using a pre-built Java Lambda handler. It automatically converts incoming AWS events into BoxLang structs, allowing your Lambda.bx run() method to process native data structures without manual JSON parsing.