3 releases
| 0.1.2 | Dec 30, 2025 |
|---|---|
| 0.1.1 | Dec 29, 2025 |
| 0.1.0 | Dec 26, 2025 |
#1898 in Web programming
2MB
41K
SLoC
armature-lambda
AWS Lambda runtime adapter for the Armature framework.
Features
- Lambda Runtime - Run Armature apps on Lambda
- API Gateway - HTTP event handling
- ALB - Application Load Balancer support
- Cold Start Optimization - Minimal startup time
- Layers - Shared dependencies
Installation
[dependencies]
armature-lambda = "0.1"
Quick Start
use armature_lambda::LambdaRuntime;
use armature_core::Application;
#[tokio::main]
async fn main() {
let app = Application::new()
.get("/", |_| async { Ok(HttpResponse::ok().with_text("Hello!")) });
LambdaRuntime::new(app).run().await;
}
API Gateway Integration
// Handles API Gateway proxy events
let runtime = LambdaRuntime::api_gateway(app);
runtime.run().await;
Build for Lambda
# Install cargo-lambda
cargo install cargo-lambda
# Build
cargo lambda build --release
# Deploy
cargo lambda deploy my-function
License
MIT OR Apache-2.0
Dependencies
~40–60MB
~1M SLoC