SlideShare a Scribd company logo
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Going Serverless with AWS
1
Suman Debnath
Principal Developer Advocate
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
• Serverless Computing
• Serverless Architecture
• Serverless Application with Python
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
• Serverless Computing
• Serverless Architecture
• Serverless Application with Python
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
4
Build and run applications without thinking about servers
Serverless Computing
4
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Computing
No servers to provision,
scale or manage
Flexible scaling Built-in availability
and
fault tolerance
5
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda
6
• Run code without thinking about servers
• Pay for only the compute time you consume
• Lambda takes care of everything required to
run and scale your code with high availability
6
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
7
7
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
8
8
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
9
Define python function1
9
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
10
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
10
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
11
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
11
Return value sent back as response3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
12
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
12
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
13
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
13
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
14
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
>>> import app
>>> app.handler(event={}, context=None)
'hello world!'
$ python
14
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
15
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
15
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
16
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
$ pip install awscli
16
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
17
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
$ pip install awscli
$ aws config
17
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
18
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
18
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
19
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
$ aws lambda create-function
--function-name hello
--handler app.handler
--runtime python3.6
--role arn:aws:iam::635100884080:role/MyApp
--zip "fileb://./app.zip"
19
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
20
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
$ aws lambda create-function
--function-name hello
--handler app.handler
--runtime python3.6
--role arn:aws:iam::635100884080:role/MyApp
--zip "fileb://./app.zip”
$ aws lambda invoke --function-name hello output
20
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function
21
Define python function1
event - data about what triggered invocation
context - runtime information about your function
2
Return value sent back as response3
app.py
$ aws lambda create-function
--function-name hello
--handler app.handler
--runtime python3.6
--role arn:aws:iam::635100884080:role/MyApp
--zip "fileb://./app.zip”
$ aws lambda invoke --function-name hello output
$ cat output
hello world!
21
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Input
22
app.py
22
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Input
23
app.py
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
23
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Input
24
app.py
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
24
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Input
25
app.py
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
$ cat output
BAR
25
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Input
26
app.py
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
$ cat output
BAR
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”baz"}' output
26
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Input
27
app.py
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
$ cat output
BAR
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”baz"}' output
$ cat output
BAZ
27
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
28
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
29
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
30
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
31
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code Start new container
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
32
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code Start new container Bootstrap the runtime
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
33
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code Start new container Bootstrap the runtime Start Code
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
34
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code Start new container Bootstrap the runtime Start Code
Cold Start
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
35
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code Start new container Bootstrap the runtime Start Code
Cold Start Warm Start
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Function Invocation
36
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
Download Code Start new container Bootstrap the runtime Start Code
Cold Start Warm Start
$ aws lambda invoke --function-name hello --payload ‘{“foo": ”baz"}' output
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 37
• Serverless Computing
• Serverless Architecture
• Serverless Application with Python
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Architecture Patterns
38
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Architecture
39
Event Trigger Lambda Services
Amazon API Gateway
Timer
SQS message
Amazon DynamoDB
Amazon S3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Architecture
40
Event Trigger Lambda Services
Amazon API Gateway
Timer
SQS message
Amazon DynamoDB
Amazon S3
Think in terms of events
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Architecture
41
Event Trigger Lambda Services
Amazon API Gateway
Timer
SQS message
Amazon DynamoDB
Amazon S3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Architecture
42
Event Trigger Lambda Services
Amazon API Gateway
Timer
SQS message
Amazon DynamoDB
Amazon S3
Decompose code into separate functions
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Synchronous Invocation
43
Event Trigger Lambda
$ aws lambda invoke
Manual Invocation
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Synchronous Invocation
44
Event Trigger Lambda
REST API Request
GET /users
{“http”: “response”}
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Async Invocation
45
Event Trigger Lambda Services
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Async Invocation
46
Event Trigger Lambda Services
Amazon S3
Object upload
1
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Async Invocation
47
Event Trigger Lambda Services
Amazon S3
Object upload
1
2
Return immediately
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Async Invocation
48
Event Trigger Lambda Services
Amazon S3
Object upload
1
2
Return immediately
3 Event trigger notification
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Async Invocation
49
Event Trigger Lambda Services
Amazon S3
Object upload
1
2
Return immediately
3 Event trigger notification
4 Generates thumbnail
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Async Invocation
50
Event Trigger Lambda Services
Amazon S3
Object upload
1
2
Return immediately
3 Event trigger notification
4 Generates thumbnail
5
Upload complete
Uploads to output bucket
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stream/Poll Invocation
51
Event Trigger Lambda Poller Lambda
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stream/Poll Invocation
52
Event Trigger Lambda Poller Lambda
Amazon SQS
message added
1
2
Return immediately
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stream/Poll Invocation
53
Event Trigger Lambda Poller Lambda
Amazon SQS
message added
1
2
Return immediately
3 Poll for messages
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stream/Poll Invocation
54
Event Trigger Lambda Poller Lambda
Amazon SQS
message added
1
2
Return immediately
3 Poll for messages
4 Message batch
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stream/Poll Invocation
55
Event Trigger Lambda Poller Lambda
Amazon SQS
message added
1
2
Return immediately
3 Poll for messages
4 Message batch 5 Lambda function invoked
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stream/Poll Invocation
56
Event Trigger Lambda Poller Lambda
Amazon SQS
message added
1
2
Return immediately
3 Poll for messages
4 Message batch 5 Lambda function invoked
Function execution finished
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Synchronous
57
Asynchronous Stream
Blocks until response is
returned from Lambda function
Lambda function triggered in
response to an event,
decoupled from event trigger
Lambda service polls for
changes on a stream, invokes
Lambda function with batch of
messages
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Synchronous
58
Asynchronous Stream
Blocks until response is
returned from Lambda function
Lambda function triggered in
response to an event,
decoupled from event trigger
Lambda service polls for
changes on a stream, invokes
Lambda function with batch of
messages
$ aws lambda invoke
Amazon API Gateway
request
/users
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Synchronous
59
Asynchronous Stream
Blocks until response is
returned from Lambda function
Lambda function triggered in
response to an event,
decoupled from event trigger
Lambda service polls for
changes on a stream, invokes
Lambda function with batch of
messages
$ aws lambda invoke
Amazon API Gateway
request
/users
Timer
Amazon S3 Object
Amazon SNS Topic
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Synchronous
60
Asynchronous Stream
Blocks until response is
returned from Lambda function
Lambda function triggered in
response to an event,
decoupled from event trigger
Lambda service polls for
changes on a stream, invokes
Lambda function with batch of
messages
$ aws lambda invoke
Amazon API Gateway
request
/users
Timer
Amazon S3 Object
Amazon SNS Topic
Amazon SQS Message
Amazon DynamoDB Stream
Amazon Kinesis Stream
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 61
• Serverless Computing
• Serverless Architecture
• Serverless Application with Python
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
62
Serverless Application using Python
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda
63
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Creating our first Lambda Function
68
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Creating our first Lambda Function
69
$ zip -r app.zip app.py1
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Creating our first Lambda Function
70
$ zip -r app.zip app.py1
2 $ aws iam create-role 
--role-name MyApp 
--assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}'
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Creating our first Lambda Function
71
$ zip -r app.zip app.py1
2 $ aws iam create-role 
--role-name MyApp 
--assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}'
$ aws lambda create-function 
--function-name hello 
--handler app.handler 
--runtime python3.6 
--role arn:aws:iam::635100884080:role/MyApp 
--zip "fileb://./app.zip"
3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Creating our first Lambda Function
72
$ zip -r app.zip app.py1
2 $ aws iam create-role 
--role-name MyApp 
--assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}'
$ aws lambda create-function 
--function-name hello 
--handler app.handler 
--runtime python3.6 
--role arn:aws:iam::635100884080:role/MyApp 
--zip "fileb://./app.zip"
3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Creating our first Lambda Function
73
$ zip -r app.zip app.py1
2 $ aws iam create-role 
--role-name MyApp 
--assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}'
$ aws lambda create-function 
--function-name hello 
--handler app.handler 
--runtime python3.6 
--role arn:aws:iam::123456789012:role/MyApp 
--zip "fileb://./app.zip"
3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Chailce
80
• Python Serverless Microframework
• Create and deploy serverless applications
• Integration with may other AWS services
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Chailce
80
• Python Serverless Microframework
• Create and deploy serverless applications
• Integration with may other AWS services
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Chalice
81
Lambda
app.py
AWS Lambda
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Chalice
82
Lambda
chalice
AWS Lambda
app.py
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Chalice
83
Lambda
chalice
AWS Lambda
app.py
app defined at module level1
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Chalice
84
Lambda
chalice
AWS Lambda
app.py
app defined at module level1
one or more decorators can be defined2
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment
85
$ chalice deploy
Creating deployment package.
Updating policy for IAM role: helloworld-dev
Creating lambda function: helloworld-dev-hello_world
Deleting Rest API: 56mbn4ke87
Deleting function: arn:aws:lambda:us-west-2:635100884080:function:helloworld-dev
Resources deployed:
- Lambda ARN: arn:aws:lambda:us-west-2:635100884080:function:helloworld-dev-hello_world
$ chalice invoke -n hello_world
"hello world!"
app.py
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
86
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
87
3rd party extensions
automatically handled from
requirements.txt
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
88
Client created in module scope
Only part of cold-start time
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
89
Client created in module scope
Only part of cold-start time
Module Import
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
90
Trigger function when object is uploaded to
S3://mydemoimgbucket/.jpg
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
91
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
92
Event dictionary mapped to python object
download_file method from boto3 will
download file parts in parallel
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
93
Generate 256x256 image and
save image to a temporary file
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3 Image Thumbnail Generator
94
Upload thumbnail back to S3,
upload_file from boto3 will use
parallelized multi part upload if needed
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Other Chalice Decorators
107
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 108
 Serverless Computing
 Serverless Architecture
 Serverless Application with Python
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Resources
109
• Introduction to AWS Lambda and Chalice
• GitHub for Chalice
• Serverless Framework for AWS
• AWS re:Invent 2018: A Serverless Journey: AWS Lambda Under the Hood
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Stay Connected
110
/suman-d /_sumand
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 111
@_sumand

More Related Content

PDF
End AWS Lambda Cold Starts with Provisioned Concurrency
PPTX
The family - presentation on AWS Serverless
PDF
Serverless workshop with Amazon Web Services
PDF
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
PDF
Serverless Beyond Functions - CTO Club Made in JLM
PDF
Ci/CD for AWS Lambda Projects - JLM CTO Club
PDF
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
PPTX
Serverless Applications with AWS SAM
End AWS Lambda Cold Starts with Provisioned Concurrency
The family - presentation on AWS Serverless
Serverless workshop with Amazon Web Services
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
Serverless Beyond Functions - CTO Club Made in JLM
Ci/CD for AWS Lambda Projects - JLM CTO Club
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
Serverless Applications with AWS SAM

Similar to AWS Serverless with Chalice (20)

PDF
A Crash Course on Serverless Applications in Python
PPTX
AWS Serverless Computing Introduction Session 2.pptx
PDF
What’s new in serverless - re:Invent 2020
PDF
How to Use AWS Lambda Layers and Lambda Runtime
PPTX
Introduction to Aws lambda and build first application | Namespace IT
PDF
What's new in Serverless at AWS?
PDF
The serverless LAMP stack
PPTX
Serverless in Action on AWS
PDF
AWS Lambda Functions A Comprehensive Guide
PPTX
Serverless Function With Python and AWS Lambda
PPTX
Containerless in the Cloud with AWS Lambda
PDF
「リモートペアプロでマントルを突き抜けろ!」AWS Cloud9でリモートペアプロ&楽々サーバーレス開発
PPTX
Amazon Web Services (AWS) that enables developers to build applications with ...
PDF
AWSomeDay Zurich 2018 - How to go serverless
PDF
Building Serverless APIs (January 2017)
PPTX
Aws meetup building_lambda
PDF
Getting started building your first serverless web application on AWS
PDF
Getting Started with Serverless Architectures
PDF
AWS re:Invent 2020 Serverless Recap
PDF
AWS Lambda Deep Dive
A Crash Course on Serverless Applications in Python
AWS Serverless Computing Introduction Session 2.pptx
What’s new in serverless - re:Invent 2020
How to Use AWS Lambda Layers and Lambda Runtime
Introduction to Aws lambda and build first application | Namespace IT
What's new in Serverless at AWS?
The serverless LAMP stack
Serverless in Action on AWS
AWS Lambda Functions A Comprehensive Guide
Serverless Function With Python and AWS Lambda
Containerless in the Cloud with AWS Lambda
「リモートペアプロでマントルを突き抜けろ!」AWS Cloud9でリモートペアプロ&楽々サーバーレス開発
Amazon Web Services (AWS) that enables developers to build applications with ...
AWSomeDay Zurich 2018 - How to go serverless
Building Serverless APIs (January 2017)
Aws meetup building_lambda
Getting started building your first serverless web application on AWS
Getting Started with Serverless Architectures
AWS re:Invent 2020 Serverless Recap
AWS Lambda Deep Dive
Ad

More from Suman Debnath (16)

PDF
LambdaMongoDB.pdf
PPTX
OpenSourceIndia-Suman.pptx
PPTX
Develop a Graph Based Recommendation System in Python on AWS
PDF
EFS_Integration.pdf
PDF
An introduction to the Transformers architecture and BERT
PDF
Transformers and BERT with SageMaker
PDF
Introduction to Transformers
PDF
AWS DynamoDB
PDF
Introduction to AWS
PDF
Data engineering
PDF
Deploy PyTorch models in Production on AWS with TorchServe
PDF
Docker on AWS
PDF
Introduction to k-Nearest Neighbors and Amazon SageMaker
PDF
Introduction to ML and Decision Tree
PDF
AWS AI Services 101
PDF
Introduction to AI/ML with AWS
LambdaMongoDB.pdf
OpenSourceIndia-Suman.pptx
Develop a Graph Based Recommendation System in Python on AWS
EFS_Integration.pdf
An introduction to the Transformers architecture and BERT
Transformers and BERT with SageMaker
Introduction to Transformers
AWS DynamoDB
Introduction to AWS
Data engineering
Deploy PyTorch models in Production on AWS with TorchServe
Docker on AWS
Introduction to k-Nearest Neighbors and Amazon SageMaker
Introduction to ML and Decision Tree
AWS AI Services 101
Introduction to AI/ML with AWS
Ad

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Empathic Computing: Creating Shared Understanding
Reach Out and Touch Someone: Haptics and Empathic Computing
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
MIND Revenue Release Quarter 2 2025 Press Release
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
sap open course for s4hana steps from ECC to s4
Network Security Unit 5.pdf for BCA BBA.
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

AWS Serverless with Chalice

  • 1. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Going Serverless with AWS 1 Suman Debnath Principal Developer Advocate
  • 2. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2 • Serverless Computing • Serverless Architecture • Serverless Application with Python
  • 3. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3 • Serverless Computing • Serverless Architecture • Serverless Application with Python
  • 4. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4 Build and run applications without thinking about servers Serverless Computing 4
  • 5. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Computing No servers to provision, scale or manage Flexible scaling Built-in availability and fault tolerance 5
  • 6. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda 6 • Run code without thinking about servers • Pay for only the compute time you consume • Lambda takes care of everything required to run and scale your code with high availability 6
  • 7. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 7 7
  • 8. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 8 8
  • 9. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 9 Define python function1 9
  • 10. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 10 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 10
  • 11. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 11 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 11 Return value sent back as response3
  • 12. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 12 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py 12
  • 13. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 13 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py 13
  • 14. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 14 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py >>> import app >>> app.handler(event={}, context=None) 'hello world!' $ python 14
  • 15. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 15 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py 15
  • 16. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 16 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py $ pip install awscli 16
  • 17. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 17 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py $ pip install awscli $ aws config 17
  • 18. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 18 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py 18
  • 19. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 19 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py $ aws lambda create-function --function-name hello --handler app.handler --runtime python3.6 --role arn:aws:iam::635100884080:role/MyApp --zip "fileb://./app.zip" 19
  • 20. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 20 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py $ aws lambda create-function --function-name hello --handler app.handler --runtime python3.6 --role arn:aws:iam::635100884080:role/MyApp --zip "fileb://./app.zip” $ aws lambda invoke --function-name hello output 20
  • 21. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function 21 Define python function1 event - data about what triggered invocation context - runtime information about your function 2 Return value sent back as response3 app.py $ aws lambda create-function --function-name hello --handler app.handler --runtime python3.6 --role arn:aws:iam::635100884080:role/MyApp --zip "fileb://./app.zip” $ aws lambda invoke --function-name hello output $ cat output hello world! 21
  • 22. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Input 22 app.py 22
  • 23. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Input 23 app.py $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output 23
  • 24. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Input 24 app.py $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output 24
  • 25. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Input 25 app.py $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output $ cat output BAR 25
  • 26. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Input 26 app.py $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output $ cat output BAR $ aws lambda invoke --function-name hello --payload ‘{“foo": ”baz"}' output 26
  • 27. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Input 27 app.py $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output $ cat output BAR $ aws lambda invoke --function-name hello --payload ‘{“foo": ”baz"}' output $ cat output BAZ 27
  • 28. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 28
  • 29. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 29 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output
  • 30. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 30 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code
  • 31. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 31 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code Start new container
  • 32. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 32 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code Start new container Bootstrap the runtime
  • 33. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 33 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code Start new container Bootstrap the runtime Start Code
  • 34. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 34 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code Start new container Bootstrap the runtime Start Code Cold Start
  • 35. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 35 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code Start new container Bootstrap the runtime Start Code Cold Start Warm Start
  • 36. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Function Invocation 36 $ aws lambda invoke --function-name hello --payload ‘{“foo": ”bar"}' output Download Code Start new container Bootstrap the runtime Start Code Cold Start Warm Start $ aws lambda invoke --function-name hello --payload ‘{“foo": ”baz"}' output
  • 37. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 37 • Serverless Computing • Serverless Architecture • Serverless Application with Python
  • 38. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Architecture Patterns 38
  • 39. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Architecture 39 Event Trigger Lambda Services Amazon API Gateway Timer SQS message Amazon DynamoDB Amazon S3
  • 40. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Architecture 40 Event Trigger Lambda Services Amazon API Gateway Timer SQS message Amazon DynamoDB Amazon S3 Think in terms of events
  • 41. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Architecture 41 Event Trigger Lambda Services Amazon API Gateway Timer SQS message Amazon DynamoDB Amazon S3
  • 42. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Architecture 42 Event Trigger Lambda Services Amazon API Gateway Timer SQS message Amazon DynamoDB Amazon S3 Decompose code into separate functions
  • 43. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Synchronous Invocation 43 Event Trigger Lambda $ aws lambda invoke Manual Invocation
  • 44. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Synchronous Invocation 44 Event Trigger Lambda REST API Request GET /users {“http”: “response”}
  • 45. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Async Invocation 45 Event Trigger Lambda Services
  • 46. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Async Invocation 46 Event Trigger Lambda Services Amazon S3 Object upload 1
  • 47. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Async Invocation 47 Event Trigger Lambda Services Amazon S3 Object upload 1 2 Return immediately
  • 48. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Async Invocation 48 Event Trigger Lambda Services Amazon S3 Object upload 1 2 Return immediately 3 Event trigger notification
  • 49. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Async Invocation 49 Event Trigger Lambda Services Amazon S3 Object upload 1 2 Return immediately 3 Event trigger notification 4 Generates thumbnail
  • 50. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Async Invocation 50 Event Trigger Lambda Services Amazon S3 Object upload 1 2 Return immediately 3 Event trigger notification 4 Generates thumbnail 5 Upload complete Uploads to output bucket
  • 51. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stream/Poll Invocation 51 Event Trigger Lambda Poller Lambda
  • 52. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stream/Poll Invocation 52 Event Trigger Lambda Poller Lambda Amazon SQS message added 1 2 Return immediately
  • 53. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stream/Poll Invocation 53 Event Trigger Lambda Poller Lambda Amazon SQS message added 1 2 Return immediately 3 Poll for messages
  • 54. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stream/Poll Invocation 54 Event Trigger Lambda Poller Lambda Amazon SQS message added 1 2 Return immediately 3 Poll for messages 4 Message batch
  • 55. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stream/Poll Invocation 55 Event Trigger Lambda Poller Lambda Amazon SQS message added 1 2 Return immediately 3 Poll for messages 4 Message batch 5 Lambda function invoked
  • 56. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stream/Poll Invocation 56 Event Trigger Lambda Poller Lambda Amazon SQS message added 1 2 Return immediately 3 Poll for messages 4 Message batch 5 Lambda function invoked Function execution finished
  • 57. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Synchronous 57 Asynchronous Stream Blocks until response is returned from Lambda function Lambda function triggered in response to an event, decoupled from event trigger Lambda service polls for changes on a stream, invokes Lambda function with batch of messages
  • 58. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Synchronous 58 Asynchronous Stream Blocks until response is returned from Lambda function Lambda function triggered in response to an event, decoupled from event trigger Lambda service polls for changes on a stream, invokes Lambda function with batch of messages $ aws lambda invoke Amazon API Gateway request /users
  • 59. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Synchronous 59 Asynchronous Stream Blocks until response is returned from Lambda function Lambda function triggered in response to an event, decoupled from event trigger Lambda service polls for changes on a stream, invokes Lambda function with batch of messages $ aws lambda invoke Amazon API Gateway request /users Timer Amazon S3 Object Amazon SNS Topic
  • 60. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Synchronous 60 Asynchronous Stream Blocks until response is returned from Lambda function Lambda function triggered in response to an event, decoupled from event trigger Lambda service polls for changes on a stream, invokes Lambda function with batch of messages $ aws lambda invoke Amazon API Gateway request /users Timer Amazon S3 Object Amazon SNS Topic Amazon SQS Message Amazon DynamoDB Stream Amazon Kinesis Stream
  • 61. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 61 • Serverless Computing • Serverless Architecture • Serverless Application with Python
  • 62. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 62 Serverless Application using Python
  • 63. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda 63
  • 64. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Creating our first Lambda Function 68
  • 65. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Creating our first Lambda Function 69 $ zip -r app.zip app.py1
  • 66. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Creating our first Lambda Function 70 $ zip -r app.zip app.py1 2 $ aws iam create-role --role-name MyApp --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }'
  • 67. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Creating our first Lambda Function 71 $ zip -r app.zip app.py1 2 $ aws iam create-role --role-name MyApp --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }' $ aws lambda create-function --function-name hello --handler app.handler --runtime python3.6 --role arn:aws:iam::635100884080:role/MyApp --zip "fileb://./app.zip" 3
  • 68. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Creating our first Lambda Function 72 $ zip -r app.zip app.py1 2 $ aws iam create-role --role-name MyApp --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }' $ aws lambda create-function --function-name hello --handler app.handler --runtime python3.6 --role arn:aws:iam::635100884080:role/MyApp --zip "fileb://./app.zip" 3
  • 69. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Creating our first Lambda Function 73 $ zip -r app.zip app.py1 2 $ aws iam create-role --role-name MyApp --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }' $ aws lambda create-function --function-name hello --handler app.handler --runtime python3.6 --role arn:aws:iam::123456789012:role/MyApp --zip "fileb://./app.zip" 3
  • 70. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Chailce 80 • Python Serverless Microframework • Create and deploy serverless applications • Integration with may other AWS services © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Chailce 80 • Python Serverless Microframework • Create and deploy serverless applications • Integration with may other AWS services
  • 71. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Chalice 81 Lambda app.py AWS Lambda
  • 72. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Chalice 82 Lambda chalice AWS Lambda app.py
  • 73. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Chalice 83 Lambda chalice AWS Lambda app.py app defined at module level1
  • 74. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Chalice 84 Lambda chalice AWS Lambda app.py app defined at module level1 one or more decorators can be defined2
  • 75. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment 85 $ chalice deploy Creating deployment package. Updating policy for IAM role: helloworld-dev Creating lambda function: helloworld-dev-hello_world Deleting Rest API: 56mbn4ke87 Deleting function: arn:aws:lambda:us-west-2:635100884080:function:helloworld-dev Resources deployed: - Lambda ARN: arn:aws:lambda:us-west-2:635100884080:function:helloworld-dev-hello_world $ chalice invoke -n hello_world "hello world!" app.py
  • 76. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 86
  • 77. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 87 3rd party extensions automatically handled from requirements.txt
  • 78. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 88 Client created in module scope Only part of cold-start time
  • 79. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 89 Client created in module scope Only part of cold-start time Module Import
  • 80. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 90 Trigger function when object is uploaded to S3://mydemoimgbucket/.jpg
  • 81. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 91
  • 82. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 92 Event dictionary mapped to python object download_file method from boto3 will download file parts in parallel
  • 83. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 93 Generate 256x256 image and save image to a temporary file
  • 84. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. S3 Image Thumbnail Generator 94 Upload thumbnail back to S3, upload_file from boto3 will use parallelized multi part upload if needed
  • 85. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Other Chalice Decorators 107
  • 86. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 108  Serverless Computing  Serverless Architecture  Serverless Application with Python
  • 87. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Resources 109 • Introduction to AWS Lambda and Chalice • GitHub for Chalice • Serverless Framework for AWS • AWS re:Invent 2018: A Serverless Journey: AWS Lambda Under the Hood
  • 88. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Stay Connected 110 /suman-d /_sumand
  • 89. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. 111 @_sumand