Cargo Lambda is a tool that simplifies building, testing, and deploying AWS Lambda functions written in Rust. It compiles Rust code for the Lambda environment and packages it efficiently for deployment.
In this Cloud Lab, you’ll learn how to deploy a Rust-based AWS Lambda function using Cargo Lambda. The function interacts with a DynamoDB table to read and return data. You’ll begin by provisioning the necessary infrastructure, including the DynamoDB table and IAM roles for the Lambda. Next, you’ll launch an EC2 instance to build and deploy the function with Cargo Lambda. You’ll also create and deploy a Lambda layer to stream the function’s logs to a Kinesis Data Stream. Finally, you’ll test the application and verify the logs published to the stream.
By the end of this Cloud Lab, you’ll have a solid understanding of Cargo Lambda and how it simplifies deploying Rust-based serverless workloads on AWS. The architecture diagram below illustrates the infrastructure you’ll provision in the lab.