armature-lambda 0.1.1

AWS Lambda runtime adapter for Armature applications
Documentation

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