Ravi Sir's Cards › AWS
Create a Lambda
This revision card explains Create a Lambda. You want code to run only when needed, with no server. It describes needs an execution role trusted by lambda.amazonaws.com. The how-to section covers how to create-function with --zip-file fileb — //fn.zip. An example on the card is invoke with --cli-binary-format raw-in-base64-out.
Read card text
What this card says
Why do we need it?
You want code to run only when needed, with no server.
What is it?
Needs an execution role trusted by lambda.amazonaws.com.
AWSLambdaBasicExecutionRole
How to do it
create-function with --zip-file fileb://fn.zip.
--handler app.handler
Example
invoke with --cli-binary-format raw-in-base64-out.
StatusCode 200