SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Dirk Fröhner, Solutions Architect, Amazon Web Services
Impress Your Friends with Your
First Serverless Application
@dirk_f5r
froehner@amazon.de@
Modern Application Web Day
2018-10-25
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://secure.flickr.com/photos/mgifford/4525333972
Why are we
here today?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Intro to serverless
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is serverless computing?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is serverless computing?
“Build and run applications without
thinking about servers”
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is serverless computing?
“Build and run applications without
thinking about servers”
“Pay per request, not for idle”
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Let’s take a look at the evolution of computing
Physical servers
in data centers
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Let’s take a look at the evolution of computing
Physical servers
in data centers
Virtual servers
in data centers
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Let’s take a look at the evolution of computing
Physical servers
in data centers
Virtual servers
in data centers
Virtual servers
in the cloud
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What serverless means
Scales with usageNo servers to provision or manage
High availability built-in Never pay for idle
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Orchestration and State Management
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Orchestration and State Management
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Orchestration and State Management
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Orchestration and State Management
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Bringing all that together…
S3
CloudFront
Static
Content
Content
Delivery
API
Layer
Application
Layer
Persistency
Layer
API
Gateway
DynamoDBAWS
Lambda
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Getting hands-on
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://github.com/aws-samples/
aws-serverless-workshops
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeStar
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeStar
 Start developing on AWS in minutes
 Manage software delivery in one place
 Work across your team securely
 Choose from a variety of project templates
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeCommit
 Fully managed
 Secure
 High availability
 Collaborate on code
 Faster deployment lifecycle
 Use your existing tools
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodeBuild
 Fully managed build service
 Continuous scaling
 Pay as you go
 Extensible
 Enables continuous integration and delivery
 Secure
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS CodePipeline
 Rapid delivery
 Configurable workflow
 Get started fast
 Easy to integrate
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Cloud9
 Code with just a browser
 Code together in real time
 Build serverless applications with ease
 Direct terminal access to AWS
 Start new projects quickly
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM – Serverless
Application Model
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Serverless Application Model (SAM)
 CloudFormation extension optimized
for serverless
 New serverless resource types:
functions, APIs, and tables
 Supports anything CloudFormation
supports
 Open specification (Apache 2.0)
github.com/awslabs
serverless-application-model
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM template
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Resources:
GetHtmlFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://sam-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
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM template
Tells CloudFormation this is a SAM
template it needs to “transform”
Creates a Lambda function with the
referenced managed IAM policy,
runtime, code at the referenced zip
location, and handler as defined.
Also creates an API Gateway and
takes care of all
mapping/permissions necessary
Creates a DynamoDB table with 5
Read & Write units
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Resources:
GetHtmlFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://sam-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
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM CLI – Local API Gateway / Lambda
 CLI tool for local testing of
serverless apps
 Works with Lambda functions and
“proxy-style” APIs
 Response object and function logs
available on your local machine
 Supports all native runtimesgithub.com/awslabs
aws-sam-local
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM CLI – Local API Gateway / Lambda
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS X-Ray
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Orchestration and State Management
Building blocks for serverless applications
AWS Lambda
Amazon DynamoDB
Amazon SNS
Amazon API Gateway Amazon SQS Amazon Kinesis
Amazon S3
API Proxy and GraphQL Messaging and Queues Analytics
Monitoring and Debugging
Compute Storage Database
AWS X-RayAWS Step Functions Amazon Cognito
User Management and IdP
AWS AppSync Amazon Athena
AWS Lambda@Edge
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS X-Ray
 Review request behavior
 Discover application issues
 Improve application performance
 Ready to use with AWS
 Designed for a variety of applications
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I get more visibility of my App?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I get more visibility of my App?
const AWSXRay = require('aws-xray-sdk-core');
# Wraps AWS SDK and trace subsequent AWS Services
const AWS = AWSXRay.captureAWS(require('aws-sdk'));
const dynamoDb = new AWS.DynamoDB.DocumentClient();
const sqs = new AWS.SQS();
# Wraps HTTP calls made
const https = AWSXRay.captureHTTPs(require('https'));
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Resources
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Landing pages
 aws.amazon.com/serverless
 github.com/awslabs/serverless-application-model
 github.com/awslabs/aws-sam-cli
 github.com/aws-samples/aws-serverless-workshops
 aws.amazon.com/<service-name>
 aws.amazon.com/<service-name>/faq
 aws.amazon.com/<service-name>/pricing
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Whitepapers
Serverless Architectures
with AWS Lambda
November 2017
bit.ly/2zVvp0w
Optimizing Enterprise
Economics with
Serverless
Architectures
October 2017
bit.ly/2hQdy44
Serverless Applications
Lens
November 2017
bit.ly/
serverless_lens
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Recorded serverless breakout sessions
re:Invent 2017 –
Serverless breakout sessions
bit.ly/serverless_playlist17
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you
dirk.froehner@amazon.de

More Related Content

Similar to Modern Applications Web Day | Impress Your Friends with Your First Serverless Application (20)

PDF
Modern Applications Development on AWS
Boaz Ziniman
 
PDF
Serverless applications with AWS
javier ramirez
 
PDF
AWS Summit Singapore 2019 | The Serverless Lifecycle: Development and Operati...
AWS Summits
 
PDF
Serverless use cases with AWS Lambda - More Serverless Event
Boaz Ziniman
 
PDF
Introduction to Serverless
Steven Bryen
 
PDF
Building Serverless Microservices with AWS
Donnie Prakoso
 
PDF
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
AWS Summits
 
PDF
Introduction to Serverless computing and AWS Lambda - Floor28
Boaz Ziniman
 
PPTX
The Serverless Tidal Wave - SwampUP 2018 Keynote
Arun Gupta
 
PDF
AWS Application Service Workshop - Serverless Architecture
John Yeung
 
PDF
Getting Started with Serverless Architectures
Rohini Gaonkar
 
PDF
How serverless helps startups innovate and scale
Gabe Hollombe
 
PDF
Serverless use cases with AWS Lambda
Boaz Ziniman
 
PPTX
DevConZM - Modern Applications Development in the Cloud
Cobus Bernard
 
PDF
AWS SAM(Serverless Application Model) 을 이용한 백오피스 마이그레이션 (현창훈, HBSmith) :: AWS...
Amazon Web Services Korea
 
PDF
AWS DevDay AWS SAM을 이용한 백오피스 마이그레이션
창훈 현
 
PDF
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
CodeOps Technologies LLP
 
PPTX
From Monolithic to Modern Apps: Best Practices
Tom Laszewski
 
PDF
20200803 - Serverless with AWS @ HELTECH
Marcia Villalba
 
PDF
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Boaz Ziniman
 
Modern Applications Development on AWS
Boaz Ziniman
 
Serverless applications with AWS
javier ramirez
 
AWS Summit Singapore 2019 | The Serverless Lifecycle: Development and Operati...
AWS Summits
 
Serverless use cases with AWS Lambda - More Serverless Event
Boaz Ziniman
 
Introduction to Serverless
Steven Bryen
 
Building Serverless Microservices with AWS
Donnie Prakoso
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
AWS Summits
 
Introduction to Serverless computing and AWS Lambda - Floor28
Boaz Ziniman
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
Arun Gupta
 
AWS Application Service Workshop - Serverless Architecture
John Yeung
 
Getting Started with Serverless Architectures
Rohini Gaonkar
 
How serverless helps startups innovate and scale
Gabe Hollombe
 
Serverless use cases with AWS Lambda
Boaz Ziniman
 
DevConZM - Modern Applications Development in the Cloud
Cobus Bernard
 
AWS SAM(Serverless Application Model) 을 이용한 백오피스 마이그레이션 (현창훈, HBSmith) :: AWS...
Amazon Web Services Korea
 
AWS DevDay AWS SAM을 이용한 백오피스 마이그레이션
창훈 현
 
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
CodeOps Technologies LLP
 
From Monolithic to Modern Apps: Best Practices
Tom Laszewski
 
20200803 - Serverless with AWS @ HELTECH
Marcia Villalba
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Boaz Ziniman
 

More from AWS Germany (20)

PDF
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
AWS Germany
 
PDF
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
AWS Germany
 
PDF
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
AWS Germany
 
PDF
Modern Applications Web Day | Container Workloads on AWS
AWS Germany
 
PDF
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
AWS Germany
 
PDF
Building Smart Home skills for Alexa
AWS Germany
 
PDF
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
AWS Germany
 
PDF
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
AWS Germany
 
PDF
Log Analytics with AWS
AWS Germany
 
PDF
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
AWS Germany
 
PDF
AWS Programme für Nonprofits
AWS Germany
 
PDF
Microservices and Data Design
AWS Germany
 
PDF
Serverless vs. Developers – the real crash
AWS Germany
 
PDF
Query your data in S3 with SQL and optimize for cost and performance
AWS Germany
 
PDF
Secret Management with Hashicorp’s Vault
AWS Germany
 
PDF
EKS Workshop
AWS Germany
 
PDF
Scale to Infinity with ECS
AWS Germany
 
PDF
Containers on AWS - State of the Union
AWS Germany
 
PDF
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
AWS Germany
 
PDF
Building Personalized Data Products - From Idea to Product
AWS Germany
 
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
AWS Germany
 
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
AWS Germany
 
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
AWS Germany
 
Modern Applications Web Day | Container Workloads on AWS
AWS Germany
 
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
AWS Germany
 
Building Smart Home skills for Alexa
AWS Germany
 
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
AWS Germany
 
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
AWS Germany
 
Log Analytics with AWS
AWS Germany
 
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
AWS Germany
 
AWS Programme für Nonprofits
AWS Germany
 
Microservices and Data Design
AWS Germany
 
Serverless vs. Developers – the real crash
AWS Germany
 
Query your data in S3 with SQL and optimize for cost and performance
AWS Germany
 
Secret Management with Hashicorp’s Vault
AWS Germany
 
EKS Workshop
AWS Germany
 
Scale to Infinity with ECS
AWS Germany
 
Containers on AWS - State of the Union
AWS Germany
 
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
AWS Germany
 
Building Personalized Data Products - From Idea to Product
AWS Germany
 
Ad

Recently uploaded (20)

PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
Trading Volume Explained by CIFDAQ- Secret Of Market Trends
CIFDAQ
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Alpha Altcoin Setup : TIA - 19th July 2025
CIFDAQ
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PDF
The Past, Present & Future of Kenya's Digital Transformation
Moses Kemibaro
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
CIFDAQ'S Token Spotlight for 16th July 2025 - ALGORAND
CIFDAQ
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Trading Volume Explained by CIFDAQ- Secret Of Market Trends
CIFDAQ
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Alpha Altcoin Setup : TIA - 19th July 2025
CIFDAQ
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
The Past, Present & Future of Kenya's Digital Transformation
Moses Kemibaro
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
CIFDAQ'S Token Spotlight for 16th July 2025 - ALGORAND
CIFDAQ
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
Ad

Modern Applications Web Day | Impress Your Friends with Your First Serverless Application

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Dirk Fröhner, Solutions Architect, Amazon Web Services Impress Your Friends with Your First Serverless Application @dirk_f5r [email protected]@ Modern Application Web Day 2018-10-25
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://secure.flickr.com/photos/mgifford/4525333972 Why are we here today?
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Intro to serverless
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is serverless computing?
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is serverless computing? “Build and run applications without thinking about servers”
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is serverless computing? “Build and run applications without thinking about servers” “Pay per request, not for idle”
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Let’s take a look at the evolution of computing Physical servers in data centers
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Let’s take a look at the evolution of computing Physical servers in data centers Virtual servers in data centers
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Let’s take a look at the evolution of computing Physical servers in data centers Virtual servers in data centers Virtual servers in the cloud
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What serverless means Scales with usageNo servers to provision or manage High availability built-in Never pay for idle
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Orchestration and State Management Building blocks for serverless applications AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 API Proxy and GraphQL Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Amazon Cognito User Management and IdP AWS AppSync Amazon Athena AWS Lambda@Edge
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Orchestration and State Management Building blocks for serverless applications AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 API Proxy and GraphQL Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Amazon Cognito User Management and IdP AWS AppSync Amazon Athena AWS Lambda@Edge
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Orchestration and State Management Building blocks for serverless applications AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 API Proxy and GraphQL Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Amazon Cognito User Management and IdP AWS AppSync Amazon Athena AWS Lambda@Edge
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Orchestration and State Management Building blocks for serverless applications AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 API Proxy and GraphQL Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Amazon Cognito User Management and IdP AWS AppSync Amazon Athena AWS Lambda@Edge
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Bringing all that together… S3 CloudFront Static Content Content Delivery API Layer Application Layer Persistency Layer API Gateway DynamoDBAWS Lambda
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Getting hands-on
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://github.com/aws-samples/ aws-serverless-workshops
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CodeStar
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CodeStar  Start developing on AWS in minutes  Manage software delivery in one place  Work across your team securely  Choose from a variety of project templates
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CodeCommit  Fully managed  Secure  High availability  Collaborate on code  Faster deployment lifecycle  Use your existing tools
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CodeBuild  Fully managed build service  Continuous scaling  Pay as you go  Extensible  Enables continuous integration and delivery  Secure
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS CodePipeline  Rapid delivery  Configurable workflow  Get started fast  Easy to integrate
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Cloud9  Code with just a browser  Code together in real time  Build serverless applications with ease  Direct terminal access to AWS  Start new projects quickly
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM – Serverless Application Model
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Serverless Application Model (SAM)  CloudFormation extension optimized for serverless  New serverless resource types: functions, APIs, and tables  Supports anything CloudFormation supports  Open specification (Apache 2.0) github.com/awslabs serverless-application-model
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM template AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Resources: GetHtmlFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://sam-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
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM template Tells CloudFormation this is a SAM template it needs to “transform” Creates a Lambda function with the referenced managed IAM policy, runtime, code at the referenced zip location, and handler as defined. Also creates an API Gateway and takes care of all mapping/permissions necessary Creates a DynamoDB table with 5 Read & Write units AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Resources: GetHtmlFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://sam-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
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM CLI – Local API Gateway / Lambda  CLI tool for local testing of serverless apps  Works with Lambda functions and “proxy-style” APIs  Response object and function logs available on your local machine  Supports all native runtimesgithub.com/awslabs aws-sam-local
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM CLI – Local API Gateway / Lambda https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS X-Ray
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Orchestration and State Management Building blocks for serverless applications AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis Amazon S3 API Proxy and GraphQL Messaging and Queues Analytics Monitoring and Debugging Compute Storage Database AWS X-RayAWS Step Functions Amazon Cognito User Management and IdP AWS AppSync Amazon Athena AWS Lambda@Edge
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS X-Ray  Review request behavior  Discover application issues  Improve application performance  Ready to use with AWS  Designed for a variety of applications
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I get more visibility of my App?
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I get more visibility of my App? const AWSXRay = require('aws-xray-sdk-core'); # Wraps AWS SDK and trace subsequent AWS Services const AWS = AWSXRay.captureAWS(require('aws-sdk')); const dynamoDb = new AWS.DynamoDB.DocumentClient(); const sqs = new AWS.SQS(); # Wraps HTTP calls made const https = AWSXRay.captureHTTPs(require('https'));
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Resources
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Landing pages  aws.amazon.com/serverless  github.com/awslabs/serverless-application-model  github.com/awslabs/aws-sam-cli  github.com/aws-samples/aws-serverless-workshops  aws.amazon.com/<service-name>  aws.amazon.com/<service-name>/faq  aws.amazon.com/<service-name>/pricing
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Whitepapers Serverless Architectures with AWS Lambda November 2017 bit.ly/2zVvp0w Optimizing Enterprise Economics with Serverless Architectures October 2017 bit.ly/2hQdy44 Serverless Applications Lens November 2017 bit.ly/ serverless_lens
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Recorded serverless breakout sessions re:Invent 2017 – Serverless breakout sessions bit.ly/serverless_playlist17
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you [email protected]