2018年9月

What can do

Good at all simple business, not dependent on the server, can be used with API-Gateway.
Only need sample functions.

What to do

first of all, we need a AWS account.
launch AWS Console

Create a Function

goto Lambda->Dashbord click the button Create function
enter a name for this function
create a new role for this function.
select Runtime as Nodejs 8.10 (this only nodejs code)
see: Lamda Functions
see: Using an IAM Role

hander is important

The module-name.export value in your function. For example, "index.handler" would call exports.handler in index.js.