Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.26 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.26 KB

Rust / Lambda / Pulumi

rust-lambda-pulumi is a Rust project that implements an AWS Lambda function in Rust using the Axum web application framework. It uses Pulumi IaC to automate deployment to AWS.

Prerequisites

Building

Run pnpm build to build the project.

This will use Cargo Lambda to build a Lambda-compatible bootstrap binary and package it into a ZIP file that's ready for deployment.

Deploying

Run pnpm run deploy to deploy the project to AWS.

You'll need to have AWS credentials set up. This will use Pulumi to create a Lambda function using the built Rust binary and link it to an API Gateway. Pulumi will output the API Gateway's public endpoint once everything is deployed.

Don't worry, you can run pnpm run destroy to tear down all of the deployed resources!

Testing

Once deployed, hit the root path on the API Gateway's public endpoint to get a list of available paths (or just cheat and check out the source!).