Serverless

Rust Serverless

Getting started I followed the link. In this page, the author wrote details and it’s very educational. To remind the procedure, I left memo. I really appreciate you, Chuma Umenze :) Hello world code cargo new rust_lambda Cargo.toml: [package] // --- snip --- autobins = false [dependencies] lambda_runtime = "0.2.1" serde = { version = "^1.0", features = ["derive"] } [[bin]] name = "bootstrap" path = "src/main.rs" src/main.rs: use lambda_runtime::{error::HandlerError, lambda, Context}; use serde::{Deserialize, Serialize}; use std::error::Error; #[derive(Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] struct LambdaRequest { full_name: String, message: Option<String>, } #[derive(Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] struct LambdaResponse { lambda_request: LambdaRequest, } fn main() -> Result<(), Box<dyn Error>> { lambda!

Serverless framework - Getting Started with Python

I tried Serverless framework with Python AWS Lambda. Prerequirement Node.js and npm. $ node -v v10.19.0 $ npm -v 7.5.2 Install I created my serverless account with Google SSO. sudo npm install -g serverless Hello world Create a project: $ serverless Serverless: No project detected. Do you want to create a new one? Yes Serverless: What do you want to make? AWS Python Serverless: What do you want to call this project?