Python, (more to come) AWS Libraries are available at runtime Versions, Aliases via ARNs calculating time based costs, 100ms blocks (e.g. 100ms w/ 128MB memory = USD 0.000000208)
{ @Override public Void handleRequest(S3Event s3Event, Context context) { // get the S3 event data from the event request S3EventNotification.S3EventNotificationRecord record = s3Event.getRecords().get(0); // your code goes here... // return an object with specified type (see class generics) return null; } }
' + params.name}; } Create the action in OpenWhisk $ wsk action create hello hello.js Run the action $ wsk action invoke hello --blocking --result --param name Niko Result { "payload": "Hello, Niko" }
# Create an AWS Lamdba function in Node.js $ serverless create --template aws-nodejs # Deploy to live AWS account $ serverless deploy # Function deployed! $ http://api.amazon.com/users/update "Powered by AWS Lambda"