January 2019
Intermediate to advanced
520 pages
14h 32m
English
The Serverless Framework uses a serverless.yml configuration file to deploy lambdas to AWS. Since we installed the serverless-rust plugin (which comes with the Rust template), we can use it to set a runtime. Fill in the parameters of the service described:
service: rust-sls provider: name: aws runtime: rust memorySize: 128
The following parameter takes more control for configuring functions:
package: individually: true
We also have to activate two plugins: one for building Rust lambdas and another for uploading assets to S3:
plugins: - serverless-rust - serverless-finch
Now we can declare our functions:
functions: lambda_1: handler: lambda_1 role: RustSlsLambdaRole events: - http: path: ride method: post cors: true authorizer: ...
Read now
Unlock full access