SlideShare a Scribd company logo
Serverless computing with AWS Lambda
Matt McClean
AWS Solutions Architect
1
What to expect from this session
•  Evolution of Cloud Compute toward Serverless
•  What is AWS Lambda?
•  Building a serverless data processing architecture
•  Real-time data processing architecture patterns
•  Tips and tricks for using AWS Lambda
•  Live demo of Apigee + AWS Lambda app
Evolution of Cloud Compute towards
Serverless
3
©2016 Apigee. All Rights Reserved.
Evolution of Compute – Public Cloud
Infrastructure
Instances
Application code
Evolution of Compute – Containers
Infrastructure
Instances
Application code
Containers
Evolution of Compute – Serverless
Application code
What is AWS Lambda?
7
©2016 Apigee. All Rights Reserved.
AWS Lambda
Serverless, event-driven compute service
Lambda = microservice without servers
AWS Lambda – Benefits
EVENT-DRIVEN SCALE
SERVERLESS
 SUBSECOND BILLING
AWS Lambda – Capabilities
BRING YOUR OWN CODE SIMPLE RESOURCE MODEL
FLEXIBLE INVOCATION PATHS GRANULAR PERMISSIONS CONTROL
AWS Lambda – How it Works
AUTHORING STATELESS
DEPLOYMENT MONITORING & LOGGING
AWS Lambda – Partner Ecosystem
Building a Serverless Data Processing
Architecture
13
©2016 Apigee. All Rights Reserved.
SOURCE of
data
Fleet of servers poll for
changes
Listening to source Pushes to queue Pull off queue
Fleet of servers act as workers
to process the data
Auto-scale
worker nodes
to adjust with
load
S3 objects
Amazon Kinesis records
DynamoDB tables
SNS messages
IoT devices
…
Cross-AZ
replication for
high
availability
Load balancer
to distribute
traffic
Data Processing Architecture with Servers
Application code
SOURCE of
data
Attach a Lambda function
And that’s it!
Lambda does
Listening/polling
Queuing
Auto scaling
Redundancy
Load balancing
Data Processing Architecture Without Servers
Application code
Real-Time Data Processing Architecture
Patterns
16
©2016 Apigee. All Rights Reserved.
Sample Real-Time File Processing Workflow Using
Amazon S3 & AWS Lambda
Amazon S3 AWS Lambda
Amazon S3
New file
uploaded
Amazon
DynamoDB
Example – Video Clip Transcode
// Transcode video files uploaded to an S3 bucket
var async = require('async');
var fs = require('fs');
var exec = require('child_process').exec;
var aws = require('aws-sdk');
var s3 = new aws.S3();
// Lambda entry point
exports.handler = function(event, context) {
var inputVideo = '/tmp/myVideo.avi';
var outputVideo = '/tmp/myVideo.mp4';
var inputBucket = event.Records[0].s3.bucket.name;
var inputKey = event.Records[0].s3.object.key;
var outputBucket = inputBucket + '-out';
var outputKey = inputKey.substr(0,inputKey.length-4) + '.mp4';
// Runs the array of functions in series, each passing their results to the next
async.waterfall([
Set up variables
Serialize steps
Example – Video Clip Transcode
// Download the object from S3 into a buffer
function download(next) {
s3.getObject({Bucket: inputBucket, Key: inputKey}, next); },
// Write the buffer to a file
function write(response, next) {
fs.writeFile(inputVideo, response.Body, next); },
// Spawn a process to transcode
function transcode(next) {
exec("./ffmpeg -i " + inputVideo + " -vcodec mpeg4 -b:v 1200k “
+ outputVideo, next); },
// Read the file to a buffer
function read(next) {
fs.readFile(outputVideo, next); },
// Upload the buffer to an object in S3
function upload(objectBuffer, next) {
s3.putObject({Bucket: outputBucket, Key: outputKey, Body: objectBuffer},
context.done); },
], context.fail);
};
Get file from S3
Write to disk
ffmpeg transcode
Read from disk
Upload to S3
Sample Real-Time Stream Processing Workflow Using Amazon
Kinesis & AWS Lambda
Amazon Kinesis AWS Lambda
Amazon Redshift
Amazon SNS
New records
available
Sample Real-Time DB Triggers Workflow Using Amazon
DynamoDB & AWS Lambda
New data
available
Amazon DynamoDB AWS Lambda
Amazon
DynamoDB
Amazon Redshift
Sample Real-Time Message Handling Workflow Using
Amazon SNS & AWS Lambda
New message
published
Amazon SNS AWS Lambda
Amazon SNS
Amazon Kinesis
Sample CRUD Backend Workflow Using Amazon API
Gateway & AWS Lambda
New API
called
Amazon API Gateway AWS Lambda
Amazon S3
Amazon
DynamoDB
More Triggers for AWS Lambda
AWS
CloudFormation
Custom Resources
Amazon SES
Actions
Amazon Cognito
Sync Triggers
… and the list will
continue to grow!
AWS IoT ActionsAWS Lambda
Scheduled Events
Amazon Echo
Skills
Amazon SWF Tasks
Tips and Tricks for using AWS Lambda
25
©2016 Apigee. All Rights Reserved.
Using Lambda to Audit CloudTrail Activity
AWS
Lambda
Amazon S3Amazon CloudTrail
Amazon SNS
AWS IAM
Using Lambda for Automated Infrastructure Management
AWS
Lambda
Amazon
SNS
Amazon
CloudWatch Alarm
ec2
runInstance
ecs
startTask
beanstalk
updateApp
kinesis
splitShard
Any API call
https://aws.amazon.com/blogs/compute/scaling-amazon-ecs-services-automatically-using-amazon-cloudwatch-and-aws-lambda/ 
Amazon
CloudWatch Event
Using Lambda to Forward AWS Events to Slack
AWS
Lambda
Amazon
SNS
Amazon
CloudWatch Events
Auto Scaling
Slack
https://aws.amazon.com/blogs/aws/new-slack-integration-blueprints-for-aws-lambda/
Using Lambda to Deploy Lambda Functions
https://aws.amazon.com/blogs/compute/dynamic-github-actions-with-aws-lambda/ 
AWS
Lambda
Amazon
SNS
GitHub Repo
lambda
createFn ()
Using Lambda in your software delivery pipeline
AWS
Lambda
AWS
CodeCommit
AWS
CodePipeline
https://aws.amazon.com/about-aws/whats-new/2016/01/aws-codepipeline-
adds-support-for-triggering-aws-lambda-functions/
A Few Other Tips and Tricks for Extending AWS Lambda
Functionality
Ø  Use /tmp space as cache
Ø  Run arbitrary binaries
Ø  Use Grunt and Jenkins plugins for deploying
Ø  Build event-driven Amazon ECS
Ø  Try out Serverless Framework
Reference Architecture
32
API Management covers the entire API Lifecycle
33
Design
Develop
Secure
Publish
Monitor
Analyze
Monetize
Scale
AWS API 
Gateway
Demo
34
Visit
http://aws.amazon.com/lambda, the
AWS Compute blog, or the
Lambda forum to learn more and to
get started using Lambda.
More info
Thank you

More Related Content

PPTX
AWS Lambda Features and Uses
PDF
AWS RDS
PPTX
AWS Lambda
PPTX
AWS Lambda Tutorial For Beginners | What is AWS Lambda? | AWS Tutorial For Be...
PPTX
AWS Lambda
PPTX
Introduction To AWS & AWS Lambda
PDF
Introduction to Serverless with AWS Lambda
PDF
AWS Lambda
AWS Lambda Features and Uses
AWS RDS
AWS Lambda
AWS Lambda Tutorial For Beginners | What is AWS Lambda? | AWS Tutorial For Be...
AWS Lambda
Introduction To AWS & AWS Lambda
Introduction to Serverless with AWS Lambda
AWS Lambda

What's hot (20)

PPTX
AWS VPC & Networking basic concepts
PDF
AWS Control Tower
PDF
AWS Connectivity, VPC Design and Security Pro Tips
PPTX
AWS IAM and security
PDF
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
PDF
AWS Serverless Introduction (Lambda)
PPTX
What is AWS?
PPTX
AWS Storage - S3 Fundamentals
PPTX
AWS API Gateway
PPTX
AWS INTRODUCTION
PDF
AWS 101: Introduction to AWS
PPTX
AWS Cloud Watch
PDF
TechnicalTerraformLandingZones121120229238.pdf
PPTX
PDF
AWS 비용, 어떻게 사용하고 계신가요? - 비용 최적화를 위한 AWS의 다양한 툴 알아보기 – 허경원, AWS 클라우드 파이낸셜 매니저:...
PDF
AWS Black Belt Techシリーズ Amazon Workspaces
PDF
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
PDF
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
PDF
AWS Basics .pdf
PDF
실전! AWS 하이브리드 네트워킹 (AWS Direct Connect 및 VPN 데모 세션) - 강동환, AWS 솔루션즈 아키텍트:: A...
AWS VPC & Networking basic concepts
AWS Control Tower
AWS Connectivity, VPC Design and Security Pro Tips
AWS IAM and security
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
AWS Serverless Introduction (Lambda)
What is AWS?
AWS Storage - S3 Fundamentals
AWS API Gateway
AWS INTRODUCTION
AWS 101: Introduction to AWS
AWS Cloud Watch
TechnicalTerraformLandingZones121120229238.pdf
AWS 비용, 어떻게 사용하고 계신가요? - 비용 최적화를 위한 AWS의 다양한 툴 알아보기 – 허경원, AWS 클라우드 파이낸셜 매니저:...
AWS Black Belt Techシリーズ Amazon Workspaces
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
AWS Basics .pdf
실전! AWS 하이브리드 네트워킹 (AWS Direct Connect 및 VPN 데모 세션) - 강동환, AWS 솔루션즈 아키텍트:: A...
Ad

Viewers also liked (20)

PDF
Bringing API Management to AWS Powered Backends
PPTX
Microservices Done Right: Key Ingredients for Microservices Success
PPTX
API Management and Kubernetes
PDF
Adapt or Die: Keynote with Greg Brail
PPTX
What's Better than Microservices? Serverless Microservices.
PDF
Adapt or Die: Opening Keynote with Chet Kapoor
PPTX
Adapt or Die Sydney - API Security
PDF
Serverless architecture with AWS Lambda (June 2016)
PDF
Lay of the land and the road ahead
PDF
슬로우캠퍼스 - 안드로이드 개발자들이여 Firebase로 날아보자 :)
PPTX
Building APIs with Apigee Edge and Microsoft Azure
PPTX
Cloud Deployments Done Right: Why APIs are Key
PDF
gRPC: The Story of Microservices at Square
PDF
AWS Lambda와 API Gateway를 통한 Serverless Architecture 특집 (윤석찬)
PPTX
Adapt or Die: A Microservices Story at Google
PDF
Docker + Kubernetes를 이용한 빌드 서버 가상화 사례
PDF
AWS re:Invent 특집(2) – 서버리스(Serverless) 마이크로서비스를 위한 일곱 가지 모범 사례 (윤석찬)
PDF
AWS re:Invent 특집(4) – 개발자를 위한 신규 서비스 총정리(윤석찬)
PPTX
Adapt or Die: Serverless Microservices
PPTX
London Adapt or Die: Five Things Enterprises Should Know About Serverless
Bringing API Management to AWS Powered Backends
Microservices Done Right: Key Ingredients for Microservices Success
API Management and Kubernetes
Adapt or Die: Keynote with Greg Brail
What's Better than Microservices? Serverless Microservices.
Adapt or Die: Opening Keynote with Chet Kapoor
Adapt or Die Sydney - API Security
Serverless architecture with AWS Lambda (June 2016)
Lay of the land and the road ahead
슬로우캠퍼스 - 안드로이드 개발자들이여 Firebase로 날아보자 :)
Building APIs with Apigee Edge and Microsoft Azure
Cloud Deployments Done Right: Why APIs are Key
gRPC: The Story of Microservices at Square
AWS Lambda와 API Gateway를 통한 Serverless Architecture 특집 (윤석찬)
Adapt or Die: A Microservices Story at Google
Docker + Kubernetes를 이용한 빌드 서버 가상화 사례
AWS re:Invent 특집(2) – 서버리스(Serverless) 마이크로서비스를 위한 일곱 가지 모범 사례 (윤석찬)
AWS re:Invent 특집(4) – 개발자를 위한 신규 서비스 총정리(윤석찬)
Adapt or Die: Serverless Microservices
London Adapt or Die: Five Things Enterprises Should Know About Serverless
Ad

Similar to Serverless computing with AWS Lambda (20)

PPTX
Getting started with Serverless on AWS
PDF
AWSomeDay Zurich 2018 - How to go serverless
PPTX
Going Serverless at AWS Startup Day Bangalore
PDF
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
PDF
Getting Started with AWS Lambda & Serverless Cloud
PDF
Serverless use cases with AWS Lambda
PPTX
Primeros pasos en desarrollo serverless
PPTX
Scheduled Retweets Using AWS Lambda
PPTX
Auto Retweets Using AWS Lambda
PDF
Aws lambda webinar -buraku
PDF
Building serverless backends - Tech talk 5 May 2017
PDF
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
PDF
Serverless use cases with AWS Lambda - More Serverless Event
PDF
Modern Applications Development on AWS
PDF
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
PDF
Getting started with AWS Lambda and the Serverless Cloud
PDF
Introduction to Serverless Computing - OOP Munich
PDF
Serverless architectures-with-aws-lambda
PDF
Getting Started with Serverless Architectures
PPTX
Getting Started with Serverless Architectures
Getting started with Serverless on AWS
AWSomeDay Zurich 2018 - How to go serverless
Going Serverless at AWS Startup Day Bangalore
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
Getting Started with AWS Lambda & Serverless Cloud
Serverless use cases with AWS Lambda
Primeros pasos en desarrollo serverless
Scheduled Retweets Using AWS Lambda
Auto Retweets Using AWS Lambda
Aws lambda webinar -buraku
Building serverless backends - Tech talk 5 May 2017
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Serverless use cases with AWS Lambda - More Serverless Event
Modern Applications Development on AWS
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Getting started with AWS Lambda and the Serverless Cloud
Introduction to Serverless Computing - OOP Munich
Serverless architectures-with-aws-lambda
Getting Started with Serverless Architectures
Getting Started with Serverless Architectures

More from Apigee | Google Cloud (20)

PDF
How Secure Are Your APIs?
PDF
Magazine Luiza at a glance (1)
PPTX
Monetization: Unlock More Value from Your APIs
PDF
Apigee Demo: API Platform Overview
PDF
Ticketmaster at a glance
PDF
AccuWeather: Recasting API Experiences in a Developer-First World
PDF
Which Application Modernization Pattern Is Right For You?
PPTX
Apigee Product Roadmap Part 2
PPTX
The Four Transformative Forces of the API Management Market
PDF
Walgreens at a glance
PDF
Apigee Edge: Intro to Microgateway
PDF
Managing the Complexity of Microservices Deployments
PDF
Pitney Bowes at a glance
PDF
Adapt or Die: Keynote with Anant Jhingran
PDF
London Adapt or Die: Opening Keynot
PDF
London Adapt or Die: Lunch keynote
PDF
London Adapt or Die: Closing Keynote — Adapt Now!
PPTX
London adapt or-die opening keynote chet kapoor
PPTX
London Adapt or Die: Opening Keynote with Chet Kapoor
PPTX
London Adapt or Die: Kubernetes, Containers and Cloud - The MoD Story
How Secure Are Your APIs?
Magazine Luiza at a glance (1)
Monetization: Unlock More Value from Your APIs
Apigee Demo: API Platform Overview
Ticketmaster at a glance
AccuWeather: Recasting API Experiences in a Developer-First World
Which Application Modernization Pattern Is Right For You?
Apigee Product Roadmap Part 2
The Four Transformative Forces of the API Management Market
Walgreens at a glance
Apigee Edge: Intro to Microgateway
Managing the Complexity of Microservices Deployments
Pitney Bowes at a glance
Adapt or Die: Keynote with Anant Jhingran
London Adapt or Die: Opening Keynot
London Adapt or Die: Lunch keynote
London Adapt or Die: Closing Keynote — Adapt Now!
London adapt or-die opening keynote chet kapoor
London Adapt or Die: Opening Keynote with Chet Kapoor
London Adapt or Die: Kubernetes, Containers and Cloud - The MoD Story

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
KodekX | Application Modernization Development
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
The AUB Centre for AI in Media Proposal.docx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
A Presentation on Artificial Intelligence
KodekX | Application Modernization Development
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
NewMind AI Monthly Chronicles - July 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectral efficient network and resource selection model in 5G networks

Serverless computing with AWS Lambda

  • 1. Serverless computing with AWS Lambda Matt McClean AWS Solutions Architect 1
  • 2. What to expect from this session •  Evolution of Cloud Compute toward Serverless •  What is AWS Lambda? •  Building a serverless data processing architecture •  Real-time data processing architecture patterns •  Tips and tricks for using AWS Lambda •  Live demo of Apigee + AWS Lambda app
  • 3. Evolution of Cloud Compute towards Serverless 3 ©2016 Apigee. All Rights Reserved.
  • 4. Evolution of Compute – Public Cloud Infrastructure Instances Application code
  • 5. Evolution of Compute – Containers Infrastructure Instances Application code Containers
  • 6. Evolution of Compute – Serverless Application code
  • 7. What is AWS Lambda? 7 ©2016 Apigee. All Rights Reserved.
  • 8. AWS Lambda Serverless, event-driven compute service Lambda = microservice without servers
  • 9. AWS Lambda – Benefits EVENT-DRIVEN SCALE SERVERLESS SUBSECOND BILLING
  • 10. AWS Lambda – Capabilities BRING YOUR OWN CODE SIMPLE RESOURCE MODEL FLEXIBLE INVOCATION PATHS GRANULAR PERMISSIONS CONTROL
  • 11. AWS Lambda – How it Works AUTHORING STATELESS DEPLOYMENT MONITORING & LOGGING
  • 12. AWS Lambda – Partner Ecosystem
  • 13. Building a Serverless Data Processing Architecture 13 ©2016 Apigee. All Rights Reserved.
  • 14. SOURCE of data Fleet of servers poll for changes Listening to source Pushes to queue Pull off queue Fleet of servers act as workers to process the data Auto-scale worker nodes to adjust with load S3 objects Amazon Kinesis records DynamoDB tables SNS messages IoT devices … Cross-AZ replication for high availability Load balancer to distribute traffic Data Processing Architecture with Servers Application code
  • 15. SOURCE of data Attach a Lambda function And that’s it! Lambda does Listening/polling Queuing Auto scaling Redundancy Load balancing Data Processing Architecture Without Servers Application code
  • 16. Real-Time Data Processing Architecture Patterns 16 ©2016 Apigee. All Rights Reserved.
  • 17. Sample Real-Time File Processing Workflow Using Amazon S3 & AWS Lambda Amazon S3 AWS Lambda Amazon S3 New file uploaded Amazon DynamoDB
  • 18. Example – Video Clip Transcode // Transcode video files uploaded to an S3 bucket var async = require('async'); var fs = require('fs'); var exec = require('child_process').exec; var aws = require('aws-sdk'); var s3 = new aws.S3(); // Lambda entry point exports.handler = function(event, context) { var inputVideo = '/tmp/myVideo.avi'; var outputVideo = '/tmp/myVideo.mp4'; var inputBucket = event.Records[0].s3.bucket.name; var inputKey = event.Records[0].s3.object.key; var outputBucket = inputBucket + '-out'; var outputKey = inputKey.substr(0,inputKey.length-4) + '.mp4'; // Runs the array of functions in series, each passing their results to the next async.waterfall([ Set up variables Serialize steps
  • 19. Example – Video Clip Transcode // Download the object from S3 into a buffer function download(next) { s3.getObject({Bucket: inputBucket, Key: inputKey}, next); }, // Write the buffer to a file function write(response, next) { fs.writeFile(inputVideo, response.Body, next); }, // Spawn a process to transcode function transcode(next) { exec("./ffmpeg -i " + inputVideo + " -vcodec mpeg4 -b:v 1200k “ + outputVideo, next); }, // Read the file to a buffer function read(next) { fs.readFile(outputVideo, next); }, // Upload the buffer to an object in S3 function upload(objectBuffer, next) { s3.putObject({Bucket: outputBucket, Key: outputKey, Body: objectBuffer}, context.done); }, ], context.fail); }; Get file from S3 Write to disk ffmpeg transcode Read from disk Upload to S3
  • 20. Sample Real-Time Stream Processing Workflow Using Amazon Kinesis & AWS Lambda Amazon Kinesis AWS Lambda Amazon Redshift Amazon SNS New records available
  • 21. Sample Real-Time DB Triggers Workflow Using Amazon DynamoDB & AWS Lambda New data available Amazon DynamoDB AWS Lambda Amazon DynamoDB Amazon Redshift
  • 22. Sample Real-Time Message Handling Workflow Using Amazon SNS & AWS Lambda New message published Amazon SNS AWS Lambda Amazon SNS Amazon Kinesis
  • 23. Sample CRUD Backend Workflow Using Amazon API Gateway & AWS Lambda New API called Amazon API Gateway AWS Lambda Amazon S3 Amazon DynamoDB
  • 24. More Triggers for AWS Lambda AWS CloudFormation Custom Resources Amazon SES Actions Amazon Cognito Sync Triggers … and the list will continue to grow! AWS IoT ActionsAWS Lambda Scheduled Events Amazon Echo Skills Amazon SWF Tasks
  • 25. Tips and Tricks for using AWS Lambda 25 ©2016 Apigee. All Rights Reserved.
  • 26. Using Lambda to Audit CloudTrail Activity AWS Lambda Amazon S3Amazon CloudTrail Amazon SNS AWS IAM
  • 27. Using Lambda for Automated Infrastructure Management AWS Lambda Amazon SNS Amazon CloudWatch Alarm ec2 runInstance ecs startTask beanstalk updateApp kinesis splitShard Any API call https://aws.amazon.com/blogs/compute/scaling-amazon-ecs-services-automatically-using-amazon-cloudwatch-and-aws-lambda/ Amazon CloudWatch Event
  • 28. Using Lambda to Forward AWS Events to Slack AWS Lambda Amazon SNS Amazon CloudWatch Events Auto Scaling Slack https://aws.amazon.com/blogs/aws/new-slack-integration-blueprints-for-aws-lambda/
  • 29. Using Lambda to Deploy Lambda Functions https://aws.amazon.com/blogs/compute/dynamic-github-actions-with-aws-lambda/ AWS Lambda Amazon SNS GitHub Repo lambda createFn ()
  • 30. Using Lambda in your software delivery pipeline AWS Lambda AWS CodeCommit AWS CodePipeline https://aws.amazon.com/about-aws/whats-new/2016/01/aws-codepipeline- adds-support-for-triggering-aws-lambda-functions/
  • 31. A Few Other Tips and Tricks for Extending AWS Lambda Functionality Ø  Use /tmp space as cache Ø  Run arbitrary binaries Ø  Use Grunt and Jenkins plugins for deploying Ø  Build event-driven Amazon ECS Ø  Try out Serverless Framework
  • 33. API Management covers the entire API Lifecycle 33 Design Develop Secure Publish Monitor Analyze Monetize Scale AWS API Gateway
  • 35. Visit http://aws.amazon.com/lambda, the AWS Compute blog, or the Lambda forum to learn more and to get started using Lambda. More info