@celsian/vura-adapter-lambda
v0.5.14
Published
AWS Lambda deployment adapter for Vura applications
Maintainers
Readme
@celsian/vura-adapter-lambda
AWS Lambda adapter for Vura applications.
What it does
@celsian/vura-adapter-lambda runs after vura build and packages the build output into an AWS Lambda + API Gateway v2 deployment. It generates a Lambda handler entry and a SAM/CloudFormation template so you can deploy with the AWS CLI or sam deploy. All Vura route kinds (serverless, task) map to Lambda functions; hot routes (kind: 'hot') require persistent Node.js processes and cannot run on Lambda.
Install
npm install @celsian/vura-adapter-lambdaMinimal example
vura.config.ts:
import { defineConfig } from '@celsian/vura-core';
import { lambdaAdapter } from '@celsian/vura-adapter-lambda';
export default defineConfig({
adapter: lambdaAdapter({ region: 'us-east-1' }),
});Build and test locally with the AWS SAM CLI:
vura build
sam local start-apiDocumentation
vura.io docs site launches with v0.5 — until then, see the repo README and CHANGELOG.
License
MIT — and it will stay MIT.
