Greeting-as-a-service (GaaS) implements a Rust 🦀 AWS Lambda Server Function that greets the user.
- Friendly errors for invalid data
- High performance, meaning low costs
- Convention over configuration
- Easy set-up for existing AWS users
- An AWS account with sufficient privileges
- Cargo Lambda
- Rust
- Clone the project
- Compile it with
cargo lambda build --release -o zip
- Create a new Lambda Function in the AWS Console
- Select Author from Scratch
- Enter some function name, like
greetingFunction
. - For a runtime, open the drop-down menu and select Custom runtime > Provide your own bootstrap on Amazon Linux 2.
- Check Advanced Settings > Enable Function URL.
- Click Create Function.
- In your Lambda Function, click Code > Upload from > .zip file > Upload
- Select
bootstrap.zip
from the target/lambda directory - Congratulations, your lambda function is now set up!