rustv1/examples/lambda/README.md
Shows how to use the AWS SDK for Rust to work with AWS Lambda.
<!--custom.overview.start-->For an example of using Rust in a lambda function, see this example.
<!--custom.overview.end-->Lambda allows you to run code without provisioning or managing servers.
For prerequisites, see the README in the rustv1 folder.
Additionally, to compile Lambda functions written in the Rust programming language, use Cargo Lambda.
<!--custom.prerequisites.end-->Code examples that show you how to perform the essential operations within a service.
Code excerpts that show you how to call individual service functions.
Before running the scenario, compile the Lambda functions.
cd calculator
cargo lambda build --output-format Zip
cd -
Then, run the complete scenario. Set RUST_LOG to capture appropriate tracing events during the execution of the scenario.
RUST_LOG=scenario=debug,lambda_code_examples=debug cargo run --bin scenario
Other single action examples write directly to stdout, and can be executed with cargo run --bin [binary]
This example shows you how to do the following:
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the rustv1 folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0