SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
The Serverless Lifecycle
Development and Operations Best Practices
Arthi Jaganathan
Solutions Architect
Amazon Web Services
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
https://secure.flickr.com/photos/mgifford/4525333972
Why are we
here today?
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
What is serverless?
No infrastructure provisioning,
no management
Automatic scaling
Pay for value Highly available and secure
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Build your application
https://secure.flickr.com/photos/spenceyc/7481166880
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Development lifecycle
Discover
Proto-
type
Learn
Test
DebugAuthor
Diagnose
OperateMonitor
Use-case Deploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Learn, discover, prototype
Desired Goal:
Understand what this “Serverless”
thing is.
Use the AWS console!
Discover
Proto-
type
Learn
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Author, test, debug
Desired Goals:
• Fast feedback loop
• Integration with IDE
• Step through and debug
• Ease of testing “locally”
• Get changes to production
Test
DebugAuthor
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Author, test, debug
Code
Application
API
Gateway
Fargate
task
Lambda
function
DynamoDB
S3
Bucket
Author
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Start with a framework
AWS
Chalice
AWS Amplify
AWS
SAM
AWS: Third-party:
Serverless
Framework
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Meet
SAM!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Serverless Application Model
AWS::Serverless::Function
AWS::Serverless::SimpleTable
AWS::Serverless::Api
SAM Template
AWS
CloudFormation
Lambda
Function
DynamoDB
Table
API
Gateway
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS Cloud9
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
DEMO!
AWS Toolkit for Visual Studio Code
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Building an API backend
S3 Bucket
Amazon
Elasticsearch
Service
Amazon API
Gateway
API Lambda DynamoDB
Table
Async processing
Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Async processing
Async processing
Lambda
DynamoDB
Table
Amazon Simple
Notification
Service
Queue
DLQ Alarm Notification
Lambda
Queue
DLQ Alarm Notification
Lambda
Data processing
Lambda
S3 Bucket
Elasticsearch
Slack
Slack
Topic
Topic
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Launched via AWS Serverless
Application Repository
parent
relationship
”nested” Serverless
Application Stack
”root”
Serverless
Application
Stack
”nested” Serverless
Application Stack
”nested” Serverless
Application Stack
Nested applications
AWS Serverless
Application
Repository
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Nested applications with SAR
AWS::Serverless::Function AWS::SQS::Queue
SAM Template
AWS::Serverless::Application
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS::Serverless::Function
AWS::Serverless::Application
AWS::SQS::Queue
SAM Template
AWS::CloudWatch::Alarm AWS::SNS::Topic
Nested App Template
Nested applications with SAR
AWS::Serverless::Function
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS::Serverless::Function
AWS::Serverless::Application
AWS::SQS::Queue
SAM Template
AWS::CloudWatch::Alarm AWS::SNS::Topic
Nested App Template
Nested applications with SAR
AWS::Serverless::Function
Root Stack
AWS
CloudFormation
Nested Stack
Alarm Notification
Lambda
Topic
QueueData processing
Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Demo
Queue
DLQ Alarm Notification
Lambda
Data processing
Lambda
Slack
Topic
Asana
DLQ Notifier
S3 Bucket
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
DEMO!
SAR and nested application
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
https://www.flickr.com/photos/fotoniogp/44866440771
Security is integral
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Security in the cloud
Incident
response
Identity Detective
control
Infrastructure
security
Data
protection
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Lambda Layers
Lets functions easily share code: Upload layer
once, reference within any function
Promote separation of responsibilities, lets
developers iterate faster on writing business logic
Built in support for secure sharing by ecosystem
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
DEMO!
Protego AWS Lambda layer
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Monitor, diagnose, operate
Desired Goals:
• Understand application status,
performance and business metrics
• Quickly diagnose root cause of
errors
• Permissions issue?
• AWS limit issue?
• Trigger configured incorrectly?
• Packaging issue?
• Logic issue?
• AWS service issue?
Diagnose
OperateMonitor
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS CI/CD Tools
AWS CodeBuild +
Third Party
AWS CodeCommit AWS CodeBuild AWS CodeDeploy AWS X-Ray
Source Build Test Deploy Monitor
AWS CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Deploying your
applications
https://secure.flickr.com/photos/simononly/15386966677
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Safe deployments baked into SAM!
Version – immutable deployment unit
Alias – pointer to a version
Lambda Function Foo:
Alias “Live”
- Version 5
- Version 6- Version 710%
90%
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
DEMO!
Safe deployment
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
https://secure.flickr.com/photos/jasoneppink/499531891
Can’t move fast if you
can’t measure what's
going on.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Logging and monitoring
Amazon CloudWatch
• Ingest cost
• Storage cost
• Data scanned for log insights
Partner solutions
• Data transfer cost
Amazon S3
Amazon
CloudWatch
Amazon
Elasticsearch
Service
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
How do you evaluate the architecture?
AWS Well Architected Framework – Serverless application lens
Thank you!
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Arthi Jaganathan
jagaarth@amazon.com

More Related Content

PDF
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
PDF
AWS Summit Singapore 2019 | Realising Business Value
PDF
AWS Summit Singapore 2019 | Realising Business Value with AWS Analytics Services
PDF
AWS Summit Singapore 2019 | Opening Keynote with Peter DeSantis
PDF
AWS Summit Singapore 2019 | Amazon Digital User Engagement Solutions
PDF
AWS Summit Singapore 2019 | The Smart Way to Build an AI & ML Strategy for Yo...
PDF
AWS Summit Singapore 2019 | Transformation Towards a Digital Native Enterprise
PDF
AWS Summit Singapore 2019 | Hiring a Global Rock Star Team: Tips and Tricks
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summit Singapore 2019 | Realising Business Value
AWS Summit Singapore 2019 | Realising Business Value with AWS Analytics Services
AWS Summit Singapore 2019 | Opening Keynote with Peter DeSantis
AWS Summit Singapore 2019 | Amazon Digital User Engagement Solutions
AWS Summit Singapore 2019 | The Smart Way to Build an AI & ML Strategy for Yo...
AWS Summit Singapore 2019 | Transformation Towards a Digital Native Enterprise
AWS Summit Singapore 2019 | Hiring a Global Rock Star Team: Tips and Tricks

Similar to AWS Summit Singapore 2019 | The Serverless Lifecycle: Development and Operations Best Practices (20)

PDF
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
PDF
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
PDF
Modern Applications Development on AWS
PDF
AWS Summit Singapore 2019 | AWS Techfest Opening Keynote
PDF
Serverless use cases with AWS Lambda - More Serverless Event
PDF
Building Serverless Microservices with AWS
PDF
How AWS builds Serverless services using Serverless
PDF
Serverless applications with AWS
PDF
Getting Started with Serverless Architectures
PDF
Building serverless applications with Amazon S3
PPTX
From Monolithic to Modern Apps: Best Practices
PPTX
Serverless and DevOps
PDF
What can you do with Serverless in 2020
PDF
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
PPTX
DevConZM - Modern Applications Development in the Cloud
PDF
Wildrydes Serverless Workshop Tel Aviv
PDF
JFokus 2020 - How to migrate an application to serverless
PDF
Introduction to Serverless Computing - OOP Munich
PDF
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
PPTX
Inovação Rápida: O caso de negócio para desenvolvimento de aplicações modernas.
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Modern Applications Development on AWS
AWS Summit Singapore 2019 | AWS Techfest Opening Keynote
Serverless use cases with AWS Lambda - More Serverless Event
Building Serverless Microservices with AWS
How AWS builds Serverless services using Serverless
Serverless applications with AWS
Getting Started with Serverless Architectures
Building serverless applications with Amazon S3
From Monolithic to Modern Apps: Best Practices
Serverless and DevOps
What can you do with Serverless in 2020
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
DevConZM - Modern Applications Development in the Cloud
Wildrydes Serverless Workshop Tel Aviv
JFokus 2020 - How to migrate an application to serverless
Introduction to Serverless Computing - OOP Munich
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Inovação Rápida: O caso de negócio para desenvolvimento de aplicações modernas.
Ad

More from AWS Summits (20)

PDF
AWS Summit Singapore 2019 | Bridging Start-ups and Enterprises
PDF
AWS Summit Singapore 2019 | Five Common Technical Challenges for Startups
PDF
AWS Summit Singapore 2019 | A Founder's Journey to Exit
PDF
AWS Summit Singapore 2019 | Snowflake: Your Data. No Limits
PDF
AWS Summit Singapore 2019 | Driving Business Outcomes with Data Lake on AWS
PDF
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
PDF
AWS Summit Singapore 2019 | Accelerating Enterprise Cloud Transformation by M...
PDF
AWS Summit Singapore 2019 | Operating Microservices at Hyperscale
PDF
AWS Summit Singapore 2019 | Autoscaling Your Kubernetes Workloads
PDF
AWS Summit Singapore 2019 | Latest Trends for Cloud-Native Application Develo...
PDF
AWS Summit Singapore 2019 | Pragmatic Container Security
PDF
AWS Summit Singapore 2019 | Enterprise Migration Journey Roadmap
PDF
AWS Summit Singapore 2019 | VMware: The Fastest Path to Hybrid Cloud
PDF
AWS Summit Singapore 2019 | Learn How to Achieve Complete Visibility, Strong ...
PDF
AWS Summit Singapore 2019 | Build, Train and Deploy Deep Learning Models on A...
PDF
AWS Summit Singapore 2019 | Build a Unified Cloud
PDF
AWS Summit Singapore 2019 | Tech Deep Dive: Cloud Data Management with Veeam,...
PDF
AWS Summit Singapore 2019 | Banking in the Cloud: 10 Lessons Learned
PDF
AWS Summit Singapore 2019 | How to Reduce Spend and Improve Efficiency in you...
PDF
AWS Summit Singapore 2019 | Next Generation Audit & Compliance - Learn how RH...
AWS Summit Singapore 2019 | Bridging Start-ups and Enterprises
AWS Summit Singapore 2019 | Five Common Technical Challenges for Startups
AWS Summit Singapore 2019 | A Founder's Journey to Exit
AWS Summit Singapore 2019 | Snowflake: Your Data. No Limits
AWS Summit Singapore 2019 | Driving Business Outcomes with Data Lake on AWS
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
AWS Summit Singapore 2019 | Accelerating Enterprise Cloud Transformation by M...
AWS Summit Singapore 2019 | Operating Microservices at Hyperscale
AWS Summit Singapore 2019 | Autoscaling Your Kubernetes Workloads
AWS Summit Singapore 2019 | Latest Trends for Cloud-Native Application Develo...
AWS Summit Singapore 2019 | Pragmatic Container Security
AWS Summit Singapore 2019 | Enterprise Migration Journey Roadmap
AWS Summit Singapore 2019 | VMware: The Fastest Path to Hybrid Cloud
AWS Summit Singapore 2019 | Learn How to Achieve Complete Visibility, Strong ...
AWS Summit Singapore 2019 | Build, Train and Deploy Deep Learning Models on A...
AWS Summit Singapore 2019 | Build a Unified Cloud
AWS Summit Singapore 2019 | Tech Deep Dive: Cloud Data Management with Veeam,...
AWS Summit Singapore 2019 | Banking in the Cloud: 10 Lessons Learned
AWS Summit Singapore 2019 | How to Reduce Spend and Improve Efficiency in you...
AWS Summit Singapore 2019 | Next Generation Audit & Compliance - Learn how RH...
Ad

AWS Summit Singapore 2019 | The Serverless Lifecycle: Development and Operations Best Practices

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T The Serverless Lifecycle Development and Operations Best Practices Arthi Jaganathan Solutions Architect Amazon Web Services
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T https://secure.flickr.com/photos/mgifford/4525333972 Why are we here today?
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T What is serverless? No infrastructure provisioning, no management Automatic scaling Pay for value Highly available and secure
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Build your application https://secure.flickr.com/photos/spenceyc/7481166880
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Development lifecycle Discover Proto- type Learn Test DebugAuthor Diagnose OperateMonitor Use-case Deploy
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Learn, discover, prototype Desired Goal: Understand what this “Serverless” thing is. Use the AWS console! Discover Proto- type Learn
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Author, test, debug Desired Goals: • Fast feedback loop • Integration with IDE • Step through and debug • Ease of testing “locally” • Get changes to production Test DebugAuthor
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Author, test, debug Code Application API Gateway Fargate task Lambda function DynamoDB S3 Bucket Author
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Start with a framework AWS Chalice AWS Amplify AWS SAM AWS: Third-party: Serverless Framework
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Meet SAM!
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Serverless Application Model AWS::Serverless::Function AWS::Serverless::SimpleTable AWS::Serverless::Api SAM Template AWS CloudFormation Lambda Function DynamoDB Table API Gateway
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T AWS Cloud9
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T DEMO! AWS Toolkit for Visual Studio Code
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Building an API backend S3 Bucket Amazon Elasticsearch Service Amazon API Gateway API Lambda DynamoDB Table Async processing Lambda
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Async processing Async processing Lambda DynamoDB Table Amazon Simple Notification Service Queue DLQ Alarm Notification Lambda Queue DLQ Alarm Notification Lambda Data processing Lambda S3 Bucket Elasticsearch Slack Slack Topic Topic
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Launched via AWS Serverless Application Repository parent relationship ”nested” Serverless Application Stack ”root” Serverless Application Stack ”nested” Serverless Application Stack ”nested” Serverless Application Stack Nested applications AWS Serverless Application Repository
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Nested applications with SAR AWS::Serverless::Function AWS::SQS::Queue SAM Template AWS::Serverless::Application
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T AWS::Serverless::Function AWS::Serverless::Application AWS::SQS::Queue SAM Template AWS::CloudWatch::Alarm AWS::SNS::Topic Nested App Template Nested applications with SAR AWS::Serverless::Function
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T AWS::Serverless::Function AWS::Serverless::Application AWS::SQS::Queue SAM Template AWS::CloudWatch::Alarm AWS::SNS::Topic Nested App Template Nested applications with SAR AWS::Serverless::Function Root Stack AWS CloudFormation Nested Stack Alarm Notification Lambda Topic QueueData processing Lambda
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Demo Queue DLQ Alarm Notification Lambda Data processing Lambda Slack Topic Asana DLQ Notifier S3 Bucket
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T DEMO! SAR and nested application
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T https://www.flickr.com/photos/fotoniogp/44866440771 Security is integral
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Security in the cloud Incident response Identity Detective control Infrastructure security Data protection
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Lambda Layers Lets functions easily share code: Upload layer once, reference within any function Promote separation of responsibilities, lets developers iterate faster on writing business logic Built in support for secure sharing by ecosystem
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T DEMO! Protego AWS Lambda layer
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Monitor, diagnose, operate Desired Goals: • Understand application status, performance and business metrics • Quickly diagnose root cause of errors • Permissions issue? • AWS limit issue? • Trigger configured incorrectly? • Packaging issue? • Logic issue? • AWS service issue? Diagnose OperateMonitor
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T AWS CI/CD Tools AWS CodeBuild + Third Party AWS CodeCommit AWS CodeBuild AWS CodeDeploy AWS X-Ray Source Build Test Deploy Monitor AWS CodePipeline
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Deploying your applications https://secure.flickr.com/photos/simononly/15386966677
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Safe deployments baked into SAM! Version – immutable deployment unit Alias – pointer to a version Lambda Function Foo: Alias “Live” - Version 5 - Version 6- Version 710% 90%
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T DEMO! Safe deployment
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T https://secure.flickr.com/photos/jasoneppink/499531891 Can’t move fast if you can’t measure what's going on.
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T Logging and monitoring Amazon CloudWatch • Ingest cost • Storage cost • Data scanned for log insights Partner solutions • Data transfer cost Amazon S3 Amazon CloudWatch Amazon Elasticsearch Service
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T How do you evaluate the architecture? AWS Well Architected Framework – Serverless application lens
  • 35. Thank you! S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Arthi Jaganathan jagaarth@amazon.com