From rust-lambda
Deploy a compiled Rust Lambda function to AWS. Use when the user wants to publish their function to AWS Lambda using Cargo Lambda, the AWS CLI, or AWS SAM. Covers creating new functions and updating existing ones.
npx claudepluginhub lep511/claude-rust-lambda-plugin --plugin rust-lambdaThis skill uses the workspace's default tool permissions.
Deploy the compiled Rust binary to AWS Lambda.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Deploy the compiled Rust binary to AWS Lambda.
cargo-lambda (simplest), aws-cli, or samBefore deploying, ensure AWS credentials are configured:
aws configure
Cargo Lambda's deploy subcommand automatically creates an execution role and the Lambda function:
cargo lambda deploy <function-name>
To use an existing IAM execution role:
cargo lambda deploy <function-name> --iam-role arn:aws:iam::111122223333:role/lambda-role
cargo lambda build --release --output-format zip
Critical parameters:
--runtime provided.al2023 — the OS-only runtime required for Rust compiled binaries and custom runtimes--handler rust.handler — the handler identifier for Rust functions--zip-file fileb://target/lambda/<function-name>/bootstrap.zipaws lambda create-function \
--function-name <function-name> \
--runtime provided.al2023 \
--role arn:aws:iam::111122223333:role/lambda-role \
--handler rust.handler \
--zip-file fileb://target/lambda/<function-name>/bootstrap.zip
Update an existing function's code:
aws lambda update-function-code \
--function-name <function-name> \
--zip-file fileb://target/lambda/<function-name>/bootstrap.zip
template.yaml)AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: SAM template for Rust binaries
Resources:
RustFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: target/lambda/<function-name>/
Handler: rust.handler
Runtime: provided.al2023
Outputs:
RustFunction:
Description: "Lambda Function ARN"
Value: !GetAtt RustFunction.Arn
For ARM64/Graviton2, add under Properties:
Architectures:
- arm64
cargo lambda build --release
sam deploy --guided
The Lambda execution role must include the permissions your function uses. Common policies:
AWSLambdaBasicExecutionRole (CloudWatch Logs)s3:PutObject on the target bucketAfter deploying, remind the user to:
/rust-lambda:invoke to test the deployed function