Building a Rust Application on AWS

Building a Rust Application on AWS
Building a Rust Application on AWS

CLOUD LABS



Building a Rust Application on AWS

In this Cloud Lab, you’ll learn to deploy a Rust-based Lambda function and layers using Cargo Lambda and configure it for a React application.

10 Tasks

beginner

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Working knowledge of Cargo Lambda
Hands on experience deploying Rust-based Lambda functions
Hands on experience deploying Lambda layers using Cargo Lambda

Technologies
Lambda logoLambda
EC2 logoEC2
Kinesis
Cloud Lab Overview

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.

Deploy a Rust-based Lambda function using Cargo Lambda
Deploy a Rust-based Lambda function using Cargo Lambda
Cloud Lab Tasks
1.Introduction
Getting Started
2.Provisioning the Required Services
Create a DynamoDB Table
Create Kinesis Data Streams
Create IAM Roles
3.Deploying Cargo Lambda
Launch an EC2 Instance
Launch the Cargo Lambda Function
Create a Logger Extension
Test the Application
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like