This example shows how to implement the Diagnostic trait to return a specific error_type in the Lambda error response. If you don't use the error_type field, you don't need to implement Diagnostic, the type will be generated based on the error type name.
- Install cargo-lambda
- Build the function with
cargo lambda build --release - Deploy the function to AWS Lambda with
cargo lambda deploy --iam-role YOUR_ROLE
Build the function with cargo lambda build --release --arm64