armature-lambda

Crates.ioarmature-lambda
lib.rsarmature-lambda
version0.1.2
created_at2025-12-26 21:35:51.77493+00
updated_at2025-12-30 22:23:26.544358+00
descriptionAWS Lambda runtime adapter for Armature applications
homepagehttps://pegasusheavy.github.io/armature
repositoryhttps://github.com/pegasusheavy/armature
max_upload_size
id2006301
size98,949
Joseph R. Quinn (quinnjr)

documentation

README

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

Commit count: 0

cargo fmt