SlideShare a Scribd company logo
1 of 50
Download to read offline
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tim Wagner, GM AWS Lambda and Amazon API Gateway
December 1, 2016
What’s New with AWS Lambda
Capabilities of a serverless platform
CI/CD for serverless apps
New features
AWS SAM
SAM in AWS CloudFormation
Serverless CI/CD pipelines
with AWS CodePipeline and AWS CodeBuild
Environment
Variables!
Environment variables for Lambda functions
AWS Serverless Application Model (“SAM”)
• A common language for describing the contents of a
serverless app.
• CloudFormation now “speaks serverless” with native support
for SAM.
• New CloudFormation tools to package and deploy Lambda-
based apps.
• Export Lambda blueprints and functions in SAM
from the AWS Lambda console.
AWSTemplateFormatVersion: '2010-09-09’
Transform: AWS::Serverless-2016-10-31
Resources: GetHtmlFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://flourish-demo-bucket/todo_list.zip
Handler: index.gethtml
Runtime: nodejs4.3
Policies: AmazonDynamoDBReadOnlyAccess
Events:
GetHtml: Type: Api
Properties: Path: /{proxy+} Method: ANY
ListTable: Type: AWS::Serverless::SimpleTable
Functions
APIs
Storage
AWS Serverless Application Model
AWSTemplateFormatVersion: '2010-09-09’
Transform: AWS::Serverless-2016-10-31
Resources: GetHtmlFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://flourish-demo-bucket/todo_list.zip
Handler: index.gethtml
Runtime: nodejs4.3
Policies: AmazonDynamoDBReadOnlyAccess
Events:
GetHtml: Type: Api
Properties: Path: /{proxy+} Method: ANY
ListTable: Type: AWS::Serverless::SimpleTable
AWSTemplateFormatVersion: '2010-09-09'
Resources:
GetHtmlFunctionGetHtmlPermissionProd:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:invokeFunction
Principal: apigateway.amazonaws.com
FunctionName:
Ref: GetHtmlFunction
SourceArn:
Fn::Sub: arn:aws:execute-
api:${AWS::Region}:${AWS::AccountId}:${Se
rverlessRestApi}/Prod/ANY/*
ServerlessRestApiProdStage:
Type: AWS::ApiGateway::Stage
Properties:
DeploymentId:
Ref: ServerlessRestApiDeployment
RestApiId:
Ref: ServerlessRestApi
StageName: Prod
ListTable:
Type: AWS::DynamoDB::Table
Properties:
ProvisionedThroughput:
WriteCapacityUnits: 5
ReadCapacityUnits: 5
AttributeDefinitions:
- AttributeName: id
AttributeType: S
KeySchema:
- KeyType: HASH
AttributeName: id
GetHtmlFunction:
Type: AWS::Lambda::Function
Properties:
Handler: index.gethtml
Code:
S3Bucket: flourish-demo-bucket
S3Key: todo_list.zip
Role:
Fn::GetAtt:
- GetHtmlFunctionRole
- Arn
Runtime: nodejs4.3
GetHtmlFunctionRole:
Type: AWS::IAM::Role
Properties:
ManagedPolicyArns:
-
arn:aws:iam::aws:policy/AmazonDynamoDB
ReadOnlyAccess
- arn:aws:iam::aws:policy/service-
role/AWSLambdaBasicExecutionRole
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Action:
- sts:AssumeRole
Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
ServerlessRestApiDeployment:
Type: AWS::ApiGateway::Deployment
Properties:
RestApiId:
Ref: ServerlessRestApi
Description: 'RestApi deployment id:
127e3fb91142ab1ddc5f5446adb094442581a
90d'
StageName: Stage
GetHtmlFunctionGetHtmlPermissionTest:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:invokeFunction
Principal: apigateway.amazonaws.com
FunctionName:
Ref: GetHtmlFunction
SourceArn:
Fn::Sub: arn:aws:execute-
api:${AWS::Region}:${AWS::AccountId}:${Se
rverlessRestApi}/*/ANY/*
ServerlessRestApi:
Type: AWS::ApiGateway::RestApi
Properties:
Body:
info:
version: '1.0'
title:
Ref: AWS::StackName
paths:
"/{proxy+}":
x-amazon-apigateway-any-method:
x-amazon-apigateway-integration:
httpMethod: ANY
type: aws_proxy
uri:
Fn::Sub:
arn:aws:apigateway:${AWS::Region}:lambda:
path/2015-03-
31/functions/${GetHtmlFunction.Arn}/invocati
ons
responses: {}
swagger: '2.0'
AWS Serverless Application Model
REPLACES:
SAM: Open Specification
A common language to
describe the content of a
serverless application
across the ecosystem.
Apache 2.0 licensed
GitHub project
DEMO
Packaging serverless apps with SAM
Serverless CI/CD pipeline
GitHub
Source Deploy
CloudFormationCodeBuild
Build
NEW!
• Pull source directly from GitHub or CodeCommit using CodePipeline
Serverless CI/CD pipeline
GitHub
Source Deploy
CloudFormationCodeBuild
Build
NEW!
• Pull source directly from GitHub or AWS CodeCommit using AWS
CodePipeline
• Build and package serverless apps with AWS CodeBuild
• npm, pip, Java compilation, BYO Docker…
Serverless CI/CD pipeline
GitHub
Source Deploy
CloudFormationCodeBuild
Build
NEW!
• Pull source directly from GitHub or AWS CodeCommit using AWS
CodePipeline
• Build and package serverless apps with AWS CodeBuild
• Deploy your completed Lambda app with AWS CloudFormation
DEMO
CI/CD pipelines for serverless apps
ICYMI: New CloudWatch features
Percentiles
Track p99 or other
percentiles in any
metric
Metrics-to-Logs
Jump from metric points
directly to CloudWatch
logs
Tracing serverless apps with AWS X-Ray
How do I diagnose
Lambda apps?
Introducing X-Ray
Gain visibility into events
traveling through services
Trace calls and timing from
Lambda functions to other
AWS services
Easy configuration
Lambda support
coming soon
Easy setup
AWS
Lambda
Amazon
S3
Amazon
DynamoDB
Introducing X-Ray
See actual dependencies
among microservice
components
Easily detect and
diagnose missing
events and throttles
View the dynamic topology of your application
Introducing X-Ray
See dwell time and retries for async invokes
Profile performance of calls your code makes to other AWS services
• Detect failures in event processing
• Easily find and fix performance issues
dwell
times
service
call times
retries
New Lambda features
AT_TIMESTAMP Amazon Kinesis iterator
C# with .NET Core
Dead letter queue
AT_TIMESTAMP Amazon Kinesis iterator
• Process streaming data in Amazon Kinesis at any point
in time
• Stop and start processing without rewinding or losing
data
Amazon Kinesis
LATESTTRIM_HORIZON TIMESTAMP
C# and .NET Core
• Write Lambda
functions in C#
• netcoreapp 1.0 on
Amazon Linux
• Built-in logging and
metrics
• Supports common
AWS event types
(S3, SNS)
Easily create reliable end-to-end event processing solutions
• Sends all unprocessed events
to your SQS queue or SNS
topic: 3 strikes rule
• Preserves events even if your
code has an issue or the call
was throttled
• Per-function
• Works for all async invokes,
including S3 and SNS events
Dead-letter queue for events
Amazon
SQS
Amazon
SNS
AWS
Lambda
DEMO
Lambda DLQ in action
Amazon
SNS
Error
Handler
Failed
events
Publish
Original
Function
Trigger
ICYMI: Recent Lambda integrations
Amazon
S3
Amazon
CloudFront
Amazon
DynamoDB
Amazon
RDS
Amazon
VPC
AWS
CodeCommit
AWS
CodePipeline
IAM Amazon
Kinesis
AWS IoT Amazon
Cognito
Amazon
SNS
AWS
Mobile Hub
Amazon API
Gateway
Amazon
SES
Amazon
SWF
AWS
CloudFormation
Amazon Aurora: SQL triggers
ICYMI: Recent Lambda feature integrations
Amazon
S3
Amazon
CloudFront
Amazon
DynamoDB
Amazon
RDS
Amazon
VPC
AWS
CodeCommit
AWS
CodePipeline
IAM Amazon
Kinesis
AWS IoT Amazon
Cognito
Amazon
SNS
AWS
Mobile Hub
Amazon API
Gateway
Amazon
SES
Amazon
SWF
AWS
CloudFormation
API Gateway: Pass-through mode
ICYMI: Recent Lambda feature integrations
Amazon
S3
Amazon
CloudFront
Amazon
DynamoDB
Amazon
RDS
Amazon
VPC
AWS
CodeCommit
AWS
CodePipeline
IAM Amazon
Kinesis
AWS IoT Amazon
Cognito
Amazon
SNS
AWS
Mobile Hub
Amazon API
Gateway
Amazon
SES
Amazon
SWF
AWS
CloudFormation
Mobile Hub: Enterprise connectors
ICYMI: Recent Lambda integrations
Amazon
S3
Amazon
CloudFront
Amazon
DynamoDB
Amazon
RDS
Amazon
VPC
AWS
CodeCommit
AWS
CodePipeline
IAM Amazon
Kinesis
AWS IoT Amazon
Cognito
Amazon
SNS
AWS
Mobile Hub
Amazon API
Gateway
Amazon
SES
Amazon
SWF
AWS
CloudFormation
S3: Per-object CloudTrail events
ICYMI: Serverless web app frameworks
Flask
WSGI
Express
ASP.NET
Core
[Route("api/[controller]")]
public class ValuesController :
{
// PUT api/values/5
[HttpPut("{id}")]
public void Put(int id, [From
{
...
Choreographing Lambda functions
Attempt a function more than 3X
Add callbacks to asynchronous functions
Handle situations that require waiting
Chain function execution (ABC)
Supports long-running workflows
AWS Step Functions
Reliably orchestrate multiple Lambda functions
DEMO
Choreographing Lambda functions
New API Gateway features
Binary encoding
Documentation support
AWS Marketplace SaaS integration
Developer Portal Reference Implementation
Binary encoding
Serve images,
audio, and other
binary content
Uses Content-Type and Accept headers
Automatically base64-encodes Lambda integrations
API documentation
• Document your APIs – edit doc parts directly in the API Gateway console
• Swagger import/export – fully round-trip-able
• Supports tech writers – independent update and publish flow
Cool feature:
Inheritance!
API Gateway and AWS Marketplace integration
• Use API Gateway to simplify
building and operating APIs
• Sell your APIs on the AWS
Marketplace
• Easy discovery and procurement for
your API’s consumers
• Track API usage by consumer / key
• Automated billing through AWS
URL Reputation APIs
Speech understanding
APIs
Monetize your microservices!
API Gateway Developer Portal
Open source reference implementation
SAM-based implementation available on GitHub
Help developers
consume your
APIs
Vend API Keys
AWS Marketplace
integration
Supports Cognito
authN
New places you can use Lambda functions
Lambda Bots
Amazon Kinesis Firehose
On-prem storage
Devices
Edge/CDN
Lambda Bots and Amazon Lex
•Text and
speech
•Lambda
functions run
business logic
•Facebook,
AWS Mobile
Hub
•Slack and
Twilio
integration
coming soon
I’d like to book a hotel
Amazon Kinesis Firehose integration
• Simple, real-time data
streaming
• Transform, audit, or
aggregate records
in flight with Lambda
• Flexible buffering
• Lambda and Firehose
both scale automatically
AWS
Lambda
AWS Snowball Edge
• Fast, simple, secure data
transfer from on-prem
to/from AWS Cloud
• 100 TB capacity
• Local S3 storage APIs
• Local Lambda functions
• Transcode multimedia
content, compress in-real
time, custom auditing
AWS Greengrass
• Greengrass extends AWS
processing onto devices
• Low-latency, near-real time
• Lambda functions run right
on the device
• Cloud storage and compute
via AWS IoT service
• BYOH – 1GHz, 128MB, x86 or
ARM, Linux
Lambda@Edge
• Low-latency request/response
customization
• Supports viewer and origin events
• Preview limitations:
• Node.js only
• 50 ms max
• Headers only
• Pricing: $0.60/M requests and
$0.00000625125 per 128MB-s
• 4K requests free/month
Sign up to join the preview!
Developer ecosystem — commercial
MonitoringDeploymentIntegrationsCode Libraries APN Skills
Developer ecosystem — open source
Chalice
Framework
Learn more
Serverless
CI / CD
SVR307: Application
Lifecycle Management in
a Serverless World
Thursday 2:30
Bots
SVR304: bots +
serverless = ❤
Thursday 4:00
Step
Functions
SVR201: Building
Multistep Serverless Apps
with AWS Step Functions
Thursday 2:30
Share our serverless journey!
@awscloud
@timallenwagner
@AWSreInvent
Useful links
Docs – Lambda, API Gateway
AWS Developer Forums – Lambda, API Gateway
AWS Compute Blog
AWS Greengrass
AWS Lex
AWS Snowball
AWS Step Functions
AWS SAM open specification on GitHub
Remember to complete
your evaluations!
Thank you!

More Related Content

What's hot

What's hot (20)

Migrating your .NET Applications to the AWS Serverless Platform
Migrating your .NET Applications to the AWS Serverless PlatformMigrating your .NET Applications to the AWS Serverless Platform
Migrating your .NET Applications to the AWS Serverless Platform
 
Advanced AWS techniques from the trenches of the Enterprise – Sourced Group
Advanced AWS techniques from the trenches of the Enterprise – Sourced GroupAdvanced AWS techniques from the trenches of the Enterprise – Sourced Group
Advanced AWS techniques from the trenches of the Enterprise – Sourced Group
 
AWS re:Invent 2016: Application Lifecycle Management in a Serverless World (S...
AWS re:Invent 2016: Application Lifecycle Management in a Serverless World (S...AWS re:Invent 2016: Application Lifecycle Management in a Serverless World (S...
AWS re:Invent 2016: Application Lifecycle Management in a Serverless World (S...
 
A Brief Look at Serverless Architecture
A Brief Look at Serverless ArchitectureA Brief Look at Serverless Architecture
A Brief Look at Serverless Architecture
 
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless CloudSRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
 
Creating Your Virtual Data Center
Creating Your Virtual Data CenterCreating Your Virtual Data Center
Creating Your Virtual Data Center
 
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
AWS re:Invent 2016: Automated DevOps and Continuous Delivery (DEV211)
 
AWS re:Invent 2016: State of the Union: Containers (CON316)
AWS re:Invent 2016: State of the Union:  Containers (CON316)AWS re:Invent 2016: State of the Union:  Containers (CON316)
AWS re:Invent 2016: State of the Union: Containers (CON316)
 
AWS re:Invent 2016: Amazon CloudWatch Logs and AWS Lambda: A Match Made in He...
AWS re:Invent 2016: Amazon CloudWatch Logs and AWS Lambda: A Match Made in He...AWS re:Invent 2016: Amazon CloudWatch Logs and AWS Lambda: A Match Made in He...
AWS re:Invent 2016: Amazon CloudWatch Logs and AWS Lambda: A Match Made in He...
 
Journey Towards Scaling Your Application to 10 million users
Journey Towards Scaling Your Application to 10 million usersJourney Towards Scaling Your Application to 10 million users
Journey Towards Scaling Your Application to 10 million users
 
Deep Dive on Serverless Web Applications - AWS May 2016 Webinar Series
Deep Dive on Serverless Web Applications - AWS May 2016 Webinar SeriesDeep Dive on Serverless Web Applications - AWS May 2016 Webinar Series
Deep Dive on Serverless Web Applications - AWS May 2016 Webinar Series
 
Reducing Latency and Increasing Performance while Cutting Infrastructure Costs
Reducing Latency and Increasing Performance while Cutting Infrastructure CostsReducing Latency and Increasing Performance while Cutting Infrastructure Costs
Reducing Latency and Increasing Performance while Cutting Infrastructure Costs
 
AWS re:Invent 2016: Building SaaS Offerings for Desktop Apps with Amazon AppS...
AWS re:Invent 2016: Building SaaS Offerings for Desktop Apps with Amazon AppS...AWS re:Invent 2016: Building SaaS Offerings for Desktop Apps with Amazon AppS...
AWS re:Invent 2016: Building SaaS Offerings for Desktop Apps with Amazon AppS...
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
NEW LAUNCH! Building Distributed Applications with AWS Step Functions
NEW LAUNCH! Building Distributed Applications with AWS Step FunctionsNEW LAUNCH! Building Distributed Applications with AWS Step Functions
NEW LAUNCH! Building Distributed Applications with AWS Step Functions
 
AWS re:Invent 2016: 6 Million New Registrations in 30 Days: How the Chick-fil...
AWS re:Invent 2016: 6 Million New Registrations in 30 Days: How the Chick-fil...AWS re:Invent 2016: 6 Million New Registrations in 30 Days: How the Chick-fil...
AWS re:Invent 2016: 6 Million New Registrations in 30 Days: How the Chick-fil...
 
AWS Lambda: Event-driven Code for Devices and the Cloud
AWS Lambda: Event-driven Code for Devices and the CloudAWS Lambda: Event-driven Code for Devices and the Cloud
AWS Lambda: Event-driven Code for Devices and the Cloud
 
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
AWS re:Invent 2016: From EC2 to ECS: How Capital One uses Application Load Ba...
 
AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...
AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...
AWS re:Invent 2016: [JK REPEAT] Serverless Architectural Patterns and Best Pr...
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 

Viewers also liked

Viewers also liked (20)

AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
 
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
AWS re:Invent 2016: Using AWS Lambda to Build Control Systems for Your AWS In...
 
AWS re:Invent 2016: bots + serverless = ❤ (SVR304)
AWS re:Invent 2016: bots + serverless = ❤ (SVR304)AWS re:Invent 2016: bots + serverless = ❤ (SVR304)
AWS re:Invent 2016: bots + serverless = ❤ (SVR304)
 
NEW LAUNCH! Serverless Apps with AWS Step Functions
NEW LAUNCH! Serverless Apps with AWS Step FunctionsNEW LAUNCH! Serverless Apps with AWS Step Functions
NEW LAUNCH! Serverless Apps with AWS Step Functions
 
AWS re:Invent 2016: Real-time Data Processing Using AWS Lambda (SVR301)
AWS re:Invent 2016: Real-time Data Processing Using AWS Lambda (SVR301)AWS re:Invent 2016: Real-time Data Processing Using AWS Lambda (SVR301)
AWS re:Invent 2016: Real-time Data Processing Using AWS Lambda (SVR301)
 
AWS re:Invent 2016: Serverless Computing Patterns at Expedia (SVR306) )
AWS re:Invent 2016: Serverless Computing Patterns at Expedia (SVR306) )AWS re:Invent 2016: Serverless Computing Patterns at Expedia (SVR306) )
AWS re:Invent 2016: Serverless Computing Patterns at Expedia (SVR306) )
 
Deep Dive on AWS Lambda - January 2017 AWS Online Tech Talks
Deep Dive on AWS Lambda - January 2017 AWS Online Tech TalksDeep Dive on AWS Lambda - January 2017 AWS Online Tech Talks
Deep Dive on AWS Lambda - January 2017 AWS Online Tech Talks
 
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
AWS re:Invent 2016: ↑↑↓↓←→←→ BA Lambda Start (SVR305)
 
AWS Lambda from the Trenches
AWS Lambda from the TrenchesAWS Lambda from the Trenches
AWS Lambda from the Trenches
 
NEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the EdgeNEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the Edge
 
AWS re:Invent 2016: Serverless Authentication and Authorization: Identity Man...
AWS re:Invent 2016: Serverless Authentication and Authorization: Identity Man...AWS re:Invent 2016: Serverless Authentication and Authorization: Identity Man...
AWS re:Invent 2016: Serverless Authentication and Authorization: Identity Man...
 
AWS Lambda: Event-Driven Code in the Cloud
AWS Lambda: Event-Driven Code in the CloudAWS Lambda: Event-Driven Code in the Cloud
AWS Lambda: Event-Driven Code in the Cloud
 
AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS...
AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS...AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS...
AWS re:Invent 2016: Workshop: Building Serverless Bots on AWS - Botathon (DCS...
 
AWS re:Invent 2016: The Psychology of Security Automation (SAC307)
AWS re:Invent 2016: The Psychology of Security Automation (SAC307)AWS re:Invent 2016: The Psychology of Security Automation (SAC307)
AWS re:Invent 2016: The Psychology of Security Automation (SAC307)
 
(CMP407) Lambda as Cron: Scheduling Invocations in AWS Lambda
(CMP407) Lambda as Cron: Scheduling Invocations in AWS Lambda(CMP407) Lambda as Cron: Scheduling Invocations in AWS Lambda
(CMP407) Lambda as Cron: Scheduling Invocations in AWS Lambda
 
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
AWS re:Invent 2016: Chalk Talk: Succeeding at Infrastructure-as-Code (GPSCT312)
 
AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...
AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...
AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...
 
AWS re:Invent 2016: Serverless to 32 XLarge: A Unified Security Approach To A...
AWS re:Invent 2016: Serverless to 32 XLarge: A Unified Security Approach To A...AWS re:Invent 2016: Serverless to 32 XLarge: A Unified Security Approach To A...
AWS re:Invent 2016: Serverless to 32 XLarge: A Unified Security Approach To A...
 
AWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless Cloud
 
AWS re:Invent 2016: Operating Your Production API (SVR402)
AWS re:Invent 2016: Operating Your Production API (SVR402)AWS re:Invent 2016: Operating Your Production API (SVR402)
AWS re:Invent 2016: Operating Your Production API (SVR402)
 

Similar to AWS re:Invent 2016: What’s New with AWS Lambda (SVR202)

Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Amazon Web Services
 

Similar to AWS re:Invent 2016: What’s New with AWS Lambda (SVR202) (20)

re:Invent recap session 1: What's New with AWS Lambda
re:Invent recap session 1: What's New with AWS Lambda re:Invent recap session 1: What's New with AWS Lambda
re:Invent recap session 1: What's New with AWS Lambda
 
Deep Dive on Serverless Application Development NY Loft
Deep Dive on Serverless Application Development NY LoftDeep Dive on Serverless Application Development NY Loft
Deep Dive on Serverless Application Development NY Loft
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 
An introduction to serverless architectures (February 2017)
An introduction to serverless architectures (February 2017)An introduction to serverless architectures (February 2017)
An introduction to serverless architectures (February 2017)
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 
Build and run applications without thinking about servers
Build and run applications without thinking about serversBuild and run applications without thinking about servers
Build and run applications without thinking about servers
 
AWS Lambda 與 Amazon API Gateway 新功能介紹
AWS Lambda 與 Amazon API Gateway 新功能介紹AWS Lambda 與 Amazon API Gateway 新功能介紹
AWS Lambda 與 Amazon API Gateway 新功能介紹
 
Serverless computing with AWS Lambda
Serverless computing with AWS Lambda Serverless computing with AWS Lambda
Serverless computing with AWS Lambda
 
Compute Without Servers – Building Applications with AWS Lambda
Compute Without Servers – Building Applications with AWS LambdaCompute Without Servers – Building Applications with AWS Lambda
Compute Without Servers – Building Applications with AWS Lambda
 
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
 
SRV302 Deep Dive on Serverless Application Development
SRV302 Deep Dive on Serverless Application DevelopmentSRV302 Deep Dive on Serverless Application Development
SRV302 Deep Dive on Serverless Application Development
 
Raleigh DevDay 2017: Building serverless web applications
Raleigh DevDay 2017: Building serverless web applicationsRaleigh DevDay 2017: Building serverless web applications
Raleigh DevDay 2017: Building serverless web applications
 
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
 
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
 
SMC305 Building CI/CD Pipelines for Serverless Applications
SMC305 Building CI/CD Pipelines for Serverless ApplicationsSMC305 Building CI/CD Pipelines for Serverless Applications
SMC305 Building CI/CD Pipelines for Serverless Applications
 
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
 
How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018
 
Building Serverless Backends with AWS Lambda and Amazon API Gateway
Building Serverless Backends with AWS Lambda and Amazon API GatewayBuilding Serverless Backends with AWS Lambda and Amazon API Gateway
Building Serverless Backends with AWS Lambda and Amazon API Gateway
 
Building serverless apps with Node.js
Building serverless apps with Node.jsBuilding serverless apps with Node.js
Building serverless apps with Node.js
 
February 2016 Webinar Series - Introducing VPC Support for AWS Lambda
February 2016 Webinar Series - Introducing VPC Support for AWS LambdaFebruary 2016 Webinar Series - Introducing VPC Support for AWS Lambda
February 2016 Webinar Series - Introducing VPC Support for AWS Lambda
 

More from Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

AWS re:Invent 2016: What’s New with AWS Lambda (SVR202)

  • 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tim Wagner, GM AWS Lambda and Amazon API Gateway December 1, 2016 What’s New with AWS Lambda
  • 2. Capabilities of a serverless platform
  • 3. CI/CD for serverless apps New features AWS SAM SAM in AWS CloudFormation Serverless CI/CD pipelines with AWS CodePipeline and AWS CodeBuild
  • 5. Environment variables for Lambda functions
  • 6. AWS Serverless Application Model (“SAM”) • A common language for describing the contents of a serverless app. • CloudFormation now “speaks serverless” with native support for SAM. • New CloudFormation tools to package and deploy Lambda- based apps. • Export Lambda blueprints and functions in SAM from the AWS Lambda console.
  • 7. AWSTemplateFormatVersion: '2010-09-09’ Transform: AWS::Serverless-2016-10-31 Resources: GetHtmlFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://flourish-demo-bucket/todo_list.zip Handler: index.gethtml Runtime: nodejs4.3 Policies: AmazonDynamoDBReadOnlyAccess Events: GetHtml: Type: Api Properties: Path: /{proxy+} Method: ANY ListTable: Type: AWS::Serverless::SimpleTable Functions APIs Storage AWS Serverless Application Model
  • 8. AWSTemplateFormatVersion: '2010-09-09’ Transform: AWS::Serverless-2016-10-31 Resources: GetHtmlFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://flourish-demo-bucket/todo_list.zip Handler: index.gethtml Runtime: nodejs4.3 Policies: AmazonDynamoDBReadOnlyAccess Events: GetHtml: Type: Api Properties: Path: /{proxy+} Method: ANY ListTable: Type: AWS::Serverless::SimpleTable AWSTemplateFormatVersion: '2010-09-09' Resources: GetHtmlFunctionGetHtmlPermissionProd: Type: AWS::Lambda::Permission Properties: Action: lambda:invokeFunction Principal: apigateway.amazonaws.com FunctionName: Ref: GetHtmlFunction SourceArn: Fn::Sub: arn:aws:execute- api:${AWS::Region}:${AWS::AccountId}:${Se rverlessRestApi}/Prod/ANY/* ServerlessRestApiProdStage: Type: AWS::ApiGateway::Stage Properties: DeploymentId: Ref: ServerlessRestApiDeployment RestApiId: Ref: ServerlessRestApi StageName: Prod ListTable: Type: AWS::DynamoDB::Table Properties: ProvisionedThroughput: WriteCapacityUnits: 5 ReadCapacityUnits: 5 AttributeDefinitions: - AttributeName: id AttributeType: S KeySchema: - KeyType: HASH AttributeName: id GetHtmlFunction: Type: AWS::Lambda::Function Properties: Handler: index.gethtml Code: S3Bucket: flourish-demo-bucket S3Key: todo_list.zip Role: Fn::GetAtt: - GetHtmlFunctionRole - Arn Runtime: nodejs4.3 GetHtmlFunctionRole: Type: AWS::IAM::Role Properties: ManagedPolicyArns: - arn:aws:iam::aws:policy/AmazonDynamoDB ReadOnlyAccess - arn:aws:iam::aws:policy/service- role/AWSLambdaBasicExecutionRole AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Action: - sts:AssumeRole Effect: Allow Principal: Service: - lambda.amazonaws.com ServerlessRestApiDeployment: Type: AWS::ApiGateway::Deployment Properties: RestApiId: Ref: ServerlessRestApi Description: 'RestApi deployment id: 127e3fb91142ab1ddc5f5446adb094442581a 90d' StageName: Stage GetHtmlFunctionGetHtmlPermissionTest: Type: AWS::Lambda::Permission Properties: Action: lambda:invokeFunction Principal: apigateway.amazonaws.com FunctionName: Ref: GetHtmlFunction SourceArn: Fn::Sub: arn:aws:execute- api:${AWS::Region}:${AWS::AccountId}:${Se rverlessRestApi}/*/ANY/* ServerlessRestApi: Type: AWS::ApiGateway::RestApi Properties: Body: info: version: '1.0' title: Ref: AWS::StackName paths: "/{proxy+}": x-amazon-apigateway-any-method: x-amazon-apigateway-integration: httpMethod: ANY type: aws_proxy uri: Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda: path/2015-03- 31/functions/${GetHtmlFunction.Arn}/invocati ons responses: {} swagger: '2.0' AWS Serverless Application Model REPLACES:
  • 9. SAM: Open Specification A common language to describe the content of a serverless application across the ecosystem. Apache 2.0 licensed GitHub project
  • 11. Serverless CI/CD pipeline GitHub Source Deploy CloudFormationCodeBuild Build NEW! • Pull source directly from GitHub or CodeCommit using CodePipeline
  • 12. Serverless CI/CD pipeline GitHub Source Deploy CloudFormationCodeBuild Build NEW! • Pull source directly from GitHub or AWS CodeCommit using AWS CodePipeline • Build and package serverless apps with AWS CodeBuild • npm, pip, Java compilation, BYO Docker…
  • 13. Serverless CI/CD pipeline GitHub Source Deploy CloudFormationCodeBuild Build NEW! • Pull source directly from GitHub or AWS CodeCommit using AWS CodePipeline • Build and package serverless apps with AWS CodeBuild • Deploy your completed Lambda app with AWS CloudFormation
  • 14. DEMO CI/CD pipelines for serverless apps
  • 15. ICYMI: New CloudWatch features Percentiles Track p99 or other percentiles in any metric Metrics-to-Logs Jump from metric points directly to CloudWatch logs
  • 16. Tracing serverless apps with AWS X-Ray How do I diagnose Lambda apps?
  • 17. Introducing X-Ray Gain visibility into events traveling through services Trace calls and timing from Lambda functions to other AWS services Easy configuration Lambda support coming soon Easy setup AWS Lambda Amazon S3 Amazon DynamoDB
  • 18. Introducing X-Ray See actual dependencies among microservice components Easily detect and diagnose missing events and throttles View the dynamic topology of your application
  • 19. Introducing X-Ray See dwell time and retries for async invokes Profile performance of calls your code makes to other AWS services • Detect failures in event processing • Easily find and fix performance issues dwell times service call times retries
  • 20. New Lambda features AT_TIMESTAMP Amazon Kinesis iterator C# with .NET Core Dead letter queue
  • 21. AT_TIMESTAMP Amazon Kinesis iterator • Process streaming data in Amazon Kinesis at any point in time • Stop and start processing without rewinding or losing data Amazon Kinesis LATESTTRIM_HORIZON TIMESTAMP
  • 22. C# and .NET Core • Write Lambda functions in C# • netcoreapp 1.0 on Amazon Linux • Built-in logging and metrics • Supports common AWS event types (S3, SNS)
  • 23. Easily create reliable end-to-end event processing solutions • Sends all unprocessed events to your SQS queue or SNS topic: 3 strikes rule • Preserves events even if your code has an issue or the call was throttled • Per-function • Works for all async invokes, including S3 and SNS events Dead-letter queue for events Amazon SQS Amazon SNS AWS Lambda
  • 24. DEMO Lambda DLQ in action Amazon SNS Error Handler Failed events Publish Original Function Trigger
  • 25. ICYMI: Recent Lambda integrations Amazon S3 Amazon CloudFront Amazon DynamoDB Amazon RDS Amazon VPC AWS CodeCommit AWS CodePipeline IAM Amazon Kinesis AWS IoT Amazon Cognito Amazon SNS AWS Mobile Hub Amazon API Gateway Amazon SES Amazon SWF AWS CloudFormation Amazon Aurora: SQL triggers
  • 26. ICYMI: Recent Lambda feature integrations Amazon S3 Amazon CloudFront Amazon DynamoDB Amazon RDS Amazon VPC AWS CodeCommit AWS CodePipeline IAM Amazon Kinesis AWS IoT Amazon Cognito Amazon SNS AWS Mobile Hub Amazon API Gateway Amazon SES Amazon SWF AWS CloudFormation API Gateway: Pass-through mode
  • 27. ICYMI: Recent Lambda feature integrations Amazon S3 Amazon CloudFront Amazon DynamoDB Amazon RDS Amazon VPC AWS CodeCommit AWS CodePipeline IAM Amazon Kinesis AWS IoT Amazon Cognito Amazon SNS AWS Mobile Hub Amazon API Gateway Amazon SES Amazon SWF AWS CloudFormation Mobile Hub: Enterprise connectors
  • 28. ICYMI: Recent Lambda integrations Amazon S3 Amazon CloudFront Amazon DynamoDB Amazon RDS Amazon VPC AWS CodeCommit AWS CodePipeline IAM Amazon Kinesis AWS IoT Amazon Cognito Amazon SNS AWS Mobile Hub Amazon API Gateway Amazon SES Amazon SWF AWS CloudFormation S3: Per-object CloudTrail events
  • 29. ICYMI: Serverless web app frameworks Flask WSGI Express ASP.NET Core [Route("api/[controller]")] public class ValuesController : { // PUT api/values/5 [HttpPut("{id}")] public void Put(int id, [From { ...
  • 31. Attempt a function more than 3X Add callbacks to asynchronous functions Handle situations that require waiting Chain function execution (ABC) Supports long-running workflows AWS Step Functions Reliably orchestrate multiple Lambda functions
  • 33. New API Gateway features Binary encoding Documentation support AWS Marketplace SaaS integration Developer Portal Reference Implementation
  • 34. Binary encoding Serve images, audio, and other binary content Uses Content-Type and Accept headers Automatically base64-encodes Lambda integrations
  • 35. API documentation • Document your APIs – edit doc parts directly in the API Gateway console • Swagger import/export – fully round-trip-able • Supports tech writers – independent update and publish flow Cool feature: Inheritance!
  • 36. API Gateway and AWS Marketplace integration • Use API Gateway to simplify building and operating APIs • Sell your APIs on the AWS Marketplace • Easy discovery and procurement for your API’s consumers • Track API usage by consumer / key • Automated billing through AWS URL Reputation APIs Speech understanding APIs Monetize your microservices!
  • 37. API Gateway Developer Portal Open source reference implementation SAM-based implementation available on GitHub Help developers consume your APIs Vend API Keys AWS Marketplace integration Supports Cognito authN
  • 38. New places you can use Lambda functions Lambda Bots Amazon Kinesis Firehose On-prem storage Devices Edge/CDN
  • 39. Lambda Bots and Amazon Lex •Text and speech •Lambda functions run business logic •Facebook, AWS Mobile Hub •Slack and Twilio integration coming soon I’d like to book a hotel
  • 40. Amazon Kinesis Firehose integration • Simple, real-time data streaming • Transform, audit, or aggregate records in flight with Lambda • Flexible buffering • Lambda and Firehose both scale automatically AWS Lambda
  • 41. AWS Snowball Edge • Fast, simple, secure data transfer from on-prem to/from AWS Cloud • 100 TB capacity • Local S3 storage APIs • Local Lambda functions • Transcode multimedia content, compress in-real time, custom auditing
  • 42. AWS Greengrass • Greengrass extends AWS processing onto devices • Low-latency, near-real time • Lambda functions run right on the device • Cloud storage and compute via AWS IoT service • BYOH – 1GHz, 128MB, x86 or ARM, Linux
  • 43. Lambda@Edge • Low-latency request/response customization • Supports viewer and origin events • Preview limitations: • Node.js only • 50 ms max • Headers only • Pricing: $0.60/M requests and $0.00000625125 per 128MB-s • 4K requests free/month Sign up to join the preview!
  • 44. Developer ecosystem — commercial MonitoringDeploymentIntegrationsCode Libraries APN Skills
  • 45. Developer ecosystem — open source Chalice Framework
  • 46. Learn more Serverless CI / CD SVR307: Application Lifecycle Management in a Serverless World Thursday 2:30 Bots SVR304: bots + serverless = ❤ Thursday 4:00 Step Functions SVR201: Building Multistep Serverless Apps with AWS Step Functions Thursday 2:30
  • 47. Share our serverless journey! @awscloud @timallenwagner @AWSreInvent
  • 48. Useful links Docs – Lambda, API Gateway AWS Developer Forums – Lambda, API Gateway AWS Compute Blog AWS Greengrass AWS Lex AWS Snowball AWS Step Functions AWS SAM open specification on GitHub