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

What's hot

Introducing AWS Fargate - Tiffany Jernigan
Introducing AWS Fargate - Tiffany JerniganIntroducing AWS Fargate - Tiffany Jernigan
Introducing AWS Fargate - Tiffany Jernigan
Amazon Web Services
 
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and FargateDeep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
Amazon Web Services
 
Deep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveDeep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep Dive
Amazon Web Services
 
AWS Lambda Layers, the Runtime API, & Nested Applications
AWS Lambda Layers, the Runtime API, & Nested ApplicationsAWS Lambda Layers, the Runtime API, & Nested Applications
AWS Lambda Layers, the Runtime API, & Nested Applications
Amazon Web Services
 
AWS Containers Day.pdf
AWS Containers Day.pdfAWS Containers Day.pdf
AWS Containers Day.pdf
Amazon Web Services
 
Journey Through the Cloud - What is AWS? Webinar - Jan 2013
Journey Through the Cloud - What is AWS? Webinar - Jan 2013Journey Through the Cloud - What is AWS? Webinar - Jan 2013
Journey Through the Cloud - What is AWS? Webinar - Jan 2013
Amazon Web Services
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO Club
Boaz Ziniman
 
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
Deep Dive on Amazon Elastic Container Service (ECS)  | AWS Summit Tel Aviv 2019Deep Dive on Amazon Elastic Container Service (ECS)  | AWS Summit Tel Aviv 2019
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
AWS Summits
 
AWS 101 business seminar in Taipei
AWS 101 business seminar in TaipeiAWS 101 business seminar in Taipei
AWS 101 business seminar in TaipeiAmazon Web Services
 
Serverless Applications with AWS SAM
Serverless Applications with AWS SAMServerless Applications with AWS SAM
Serverless Applications with AWS SAM
Chris Munns
 
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Amazon Web Services
 
Serverless functions deep dive
Serverless functions deep diveServerless functions deep dive
Serverless functions deep dive
Amazon Web Services
 
Containers on AWS: An Introduction
Containers on AWS: An IntroductionContainers on AWS: An Introduction
Containers on AWS: An Introduction
Amazon Web Services
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep Dive
Amazon Web Services
 
Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...
Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...
Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...
Amazon Web Services
 
Containers on AWS - State of the Union
Containers on AWS - State of the UnionContainers on AWS - State of the Union
Containers on AWS - State of the Union
AWS Germany
 
Containers - State of the Union
Containers - State of the UnionContainers - State of the Union
Containers - State of the Union
Amazon Web Services
 
Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019
Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019 Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019
Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019
AWSKRUG - AWS한국사용자모임
 
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
AWS Germany
 
Building CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless ApplicationsBuilding CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless Applications
Amazon Web Services
 

What's hot (20)

Introducing AWS Fargate - Tiffany Jernigan
Introducing AWS Fargate - Tiffany JerniganIntroducing AWS Fargate - Tiffany Jernigan
Introducing AWS Fargate - Tiffany Jernigan
 
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and FargateDeep Dive on Amazon Elastic Container Service (ECS) and Fargate
Deep Dive on Amazon Elastic Container Service (ECS) and Fargate
 
Deep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep DiveDeep dive ECS & Fargate Deep Dive
Deep dive ECS & Fargate Deep Dive
 
AWS Lambda Layers, the Runtime API, & Nested Applications
AWS Lambda Layers, the Runtime API, & Nested ApplicationsAWS Lambda Layers, the Runtime API, & Nested Applications
AWS Lambda Layers, the Runtime API, & Nested Applications
 
AWS Containers Day.pdf
AWS Containers Day.pdfAWS Containers Day.pdf
AWS Containers Day.pdf
 
Journey Through the Cloud - What is AWS? Webinar - Jan 2013
Journey Through the Cloud - What is AWS? Webinar - Jan 2013Journey Through the Cloud - What is AWS? Webinar - Jan 2013
Journey Through the Cloud - What is AWS? Webinar - Jan 2013
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO Club
 
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
Deep Dive on Amazon Elastic Container Service (ECS)  | AWS Summit Tel Aviv 2019Deep Dive on Amazon Elastic Container Service (ECS)  | AWS Summit Tel Aviv 2019
Deep Dive on Amazon Elastic Container Service (ECS) | AWS Summit Tel Aviv 2019
 
AWS 101 business seminar in Taipei
AWS 101 business seminar in TaipeiAWS 101 business seminar in Taipei
AWS 101 business seminar in Taipei
 
Serverless Applications with AWS SAM
Serverless Applications with AWS SAMServerless Applications with AWS SAM
Serverless Applications with AWS SAM
 
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
 
Serverless functions deep dive
Serverless functions deep diveServerless functions deep dive
Serverless functions deep dive
 
Containers on AWS: An Introduction
Containers on AWS: An IntroductionContainers on AWS: An Introduction
Containers on AWS: An Introduction
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep Dive
 
Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...
Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...
Deep Dive on Container Networking at Scale on Amazon EKS, Amazon ECS, & Amazo...
 
Containers on AWS - State of the Union
Containers on AWS - State of the UnionContainers on AWS - State of the Union
Containers on AWS - State of the Union
 
Containers - State of the Union
Containers - State of the UnionContainers - State of the Union
Containers - State of the Union
 
Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019
Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019 Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019
Lambda Layers 로 람다함수 다이어트 하기 :: 이경우 - AWS Community Day 2019
 
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
Amazon Elastic Container Service for Kubernetes (Amazon EKS) I AWS Dev Day 2018
 
Building CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless ApplicationsBuilding CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless Applications
 

Similar to AWS Serverless with Chalice

A Crash Course on Serverless Applications in Python
A Crash Course on Serverless Applications in PythonA Crash Course on Serverless Applications in Python
A Crash Course on Serverless Applications in Python
James Saryerwinnie
 
The serverless LAMP stack
The serverless LAMP stackThe serverless LAMP stack
The serverless LAMP stack
⛷️ Ben Smith
 
使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)
使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)
使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)
Amazon Web Services
 
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Amazon Web Services
 
Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...
Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...
Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...
Amazon Web Services
 
Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...
Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...
Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Serverless APIs and you
Serverless APIs and youServerless APIs and you
Serverless APIs and you
James Beswick
 
20200803 - Serverless with AWS @ HELTECH
20200803 - Serverless with AWS @ HELTECH20200803 - Serverless with AWS @ HELTECH
20200803 - Serverless with AWS @ HELTECH
Marcia Villalba
 
Monetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdf
Monetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdfMonetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdf
Monetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdf
Amazon Web Services
 
Serverless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web appServerless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web app
Heitor Lessa
 
Serverless Developer Experience I AWS Dev Day 2018
Serverless Developer Experience I AWS Dev Day 2018Serverless Developer Experience I AWS Dev Day 2018
Serverless Developer Experience I AWS Dev Day 2018
AWS Germany
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Amazon Web Services
 
Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...
Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...
Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...
Amazon Web Services
 
What's new in Serverless at AWS?
What's new in Serverless at AWS?What's new in Serverless at AWS?
What's new in Serverless at AWS?
Daniel Zivkovic
 
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
Amazon Web Services
 
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Amazon Web Services
 
Introduction to AWS Amplify CLI
Introduction to AWS Amplify CLIIntroduction to AWS Amplify CLI
Introduction to AWS Amplify CLI
Amazon Web Services
 
20200513 Getting started with AWS Amplify
20200513   Getting started with AWS Amplify20200513   Getting started with AWS Amplify
20200513 Getting started with AWS Amplify
Marcia Villalba
 
Best Practices: Building Private Serverless Microservices in your VPC (SRV349...
Best Practices: Building Private Serverless Microservices in your VPC (SRV349...Best Practices: Building Private Serverless Microservices in your VPC (SRV349...
Best Practices: Building Private Serverless Microservices in your VPC (SRV349...
Amazon Web Services
 

Similar to AWS Serverless with Chalice (20)

A Crash Course on Serverless Applications in Python
A Crash Course on Serverless Applications in PythonA Crash Course on Serverless Applications in Python
A Crash Course on Serverless Applications in Python
 
The serverless LAMP stack
The serverless LAMP stackThe serverless LAMP stack
The serverless LAMP stack
 
使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)
使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)
使用 AWS 無伺服器化應用程式模型 (SAM) 釋放您的 "敏捷" 能量 (Level 300)
 
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
 
Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...
Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...
Automate Your Alexa Lambda Function Deployment Workflows Using AWS CodeCommit...
 
Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...
Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...
Develop Cross-Platform Mobile Apps with React Native, GraphQL, & AWS (MOB324)...
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Serverless APIs and you
Serverless APIs and youServerless APIs and you
Serverless APIs and you
 
20200803 - Serverless with AWS @ HELTECH
20200803 - Serverless with AWS @ HELTECH20200803 - Serverless with AWS @ HELTECH
20200803 - Serverless with AWS @ HELTECH
 
Monetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdf
Monetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdfMonetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdf
Monetize Your Mobile App with Amazon Mobile Ads (MOB311) - AWS reInvent 2018.pdf
 
Serverless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web appServerless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web app
 
Serverless Developer Experience I AWS Dev Day 2018
Serverless Developer Experience I AWS Dev Day 2018Serverless Developer Experience I AWS Dev Day 2018
Serverless Developer Experience I AWS Dev Day 2018
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
 
Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...
Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...
Lessons Learned from Building an AWS Service on AWS Lambda (SRV327-R1) - AWS ...
 
What's new in Serverless at AWS?
What's new in Serverless at AWS?What's new in Serverless at AWS?
What's new in Serverless at AWS?
 
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
 
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
 
Introduction to AWS Amplify CLI
Introduction to AWS Amplify CLIIntroduction to AWS Amplify CLI
Introduction to AWS Amplify CLI
 
20200513 Getting started with AWS Amplify
20200513   Getting started with AWS Amplify20200513   Getting started with AWS Amplify
20200513 Getting started with AWS Amplify
 
Best Practices: Building Private Serverless Microservices in your VPC (SRV349...
Best Practices: Building Private Serverless Microservices in your VPC (SRV349...Best Practices: Building Private Serverless Microservices in your VPC (SRV349...
Best Practices: Building Private Serverless Microservices in your VPC (SRV349...
 

More from Suman Debnath

LambdaMongoDB.pdf
LambdaMongoDB.pdfLambdaMongoDB.pdf
LambdaMongoDB.pdf
Suman Debnath
 
OpenSourceIndia-Suman.pptx
OpenSourceIndia-Suman.pptxOpenSourceIndia-Suman.pptx
OpenSourceIndia-Suman.pptx
Suman Debnath
 
Develop a Graph Based Recommendation System in Python on AWS
Develop a Graph Based Recommendation System in Python on AWSDevelop a Graph Based Recommendation System in Python on AWS
Develop a Graph Based Recommendation System in Python on AWS
Suman Debnath
 
EFS_Integration.pdf
EFS_Integration.pdfEFS_Integration.pdf
EFS_Integration.pdf
Suman Debnath
 
An introduction to the Transformers architecture and BERT
An introduction to the Transformers architecture and BERTAn introduction to the Transformers architecture and BERT
An introduction to the Transformers architecture and BERT
Suman Debnath
 
Transformers and BERT with SageMaker
Transformers and BERT with SageMakerTransformers and BERT with SageMaker
Transformers and BERT with SageMaker
Suman Debnath
 
Introduction to Transformers
Introduction to TransformersIntroduction to Transformers
Introduction to Transformers
Suman Debnath
 
AWS DynamoDB
AWS DynamoDBAWS DynamoDB
AWS DynamoDB
Suman Debnath
 
Introduction to AWS
Introduction to AWSIntroduction to AWS
Introduction to AWS
Suman Debnath
 
Data engineering
Data engineeringData engineering
Data engineering
Suman Debnath
 
Deploy PyTorch models in Production on AWS with TorchServe
Deploy PyTorch models in Production on AWS with TorchServeDeploy PyTorch models in Production on AWS with TorchServe
Deploy PyTorch models in Production on AWS with TorchServe
Suman Debnath
 
Docker on AWS
Docker on AWSDocker on AWS
Docker on AWS
Suman Debnath
 
Introduction to k-Nearest Neighbors and Amazon SageMaker
Introduction to k-Nearest Neighbors and Amazon SageMaker Introduction to k-Nearest Neighbors and Amazon SageMaker
Introduction to k-Nearest Neighbors and Amazon SageMaker
Suman Debnath
 
Introduction to ML and Decision Tree
Introduction to ML and Decision TreeIntroduction to ML and Decision Tree
Introduction to ML and Decision Tree
Suman Debnath
 
AWS AI Services 101
AWS AI Services 101AWS AI Services 101
AWS AI Services 101
Suman Debnath
 
Introduction to AI/ML with AWS
Introduction to AI/ML with AWSIntroduction to AI/ML with AWS
Introduction to AI/ML with AWS
Suman Debnath
 

More from Suman Debnath (16)

LambdaMongoDB.pdf
LambdaMongoDB.pdfLambdaMongoDB.pdf
LambdaMongoDB.pdf
 
OpenSourceIndia-Suman.pptx
OpenSourceIndia-Suman.pptxOpenSourceIndia-Suman.pptx
OpenSourceIndia-Suman.pptx
 
Develop a Graph Based Recommendation System in Python on AWS
Develop a Graph Based Recommendation System in Python on AWSDevelop a Graph Based Recommendation System in Python on AWS
Develop a Graph Based Recommendation System in Python on AWS
 
EFS_Integration.pdf
EFS_Integration.pdfEFS_Integration.pdf
EFS_Integration.pdf
 
An introduction to the Transformers architecture and BERT
An introduction to the Transformers architecture and BERTAn introduction to the Transformers architecture and BERT
An introduction to the Transformers architecture and BERT
 
Transformers and BERT with SageMaker
Transformers and BERT with SageMakerTransformers and BERT with SageMaker
Transformers and BERT with SageMaker
 
Introduction to Transformers
Introduction to TransformersIntroduction to Transformers
Introduction to Transformers
 
AWS DynamoDB
AWS DynamoDBAWS DynamoDB
AWS DynamoDB
 
Introduction to AWS
Introduction to AWSIntroduction to AWS
Introduction to AWS
 
Data engineering
Data engineeringData engineering
Data engineering
 
Deploy PyTorch models in Production on AWS with TorchServe
Deploy PyTorch models in Production on AWS with TorchServeDeploy PyTorch models in Production on AWS with TorchServe
Deploy PyTorch models in Production on AWS with TorchServe
 
Docker on AWS
Docker on AWSDocker on AWS
Docker on AWS
 
Introduction to k-Nearest Neighbors and Amazon SageMaker
Introduction to k-Nearest Neighbors and Amazon SageMaker Introduction to k-Nearest Neighbors and Amazon SageMaker
Introduction to k-Nearest Neighbors and Amazon SageMaker
 
Introduction to ML and Decision Tree
Introduction to ML and Decision TreeIntroduction to ML and Decision Tree
Introduction to ML and Decision Tree
 
AWS AI Services 101
AWS AI Services 101AWS AI Services 101
AWS AI Services 101
 
Introduction to AI/ML with AWS
Introduction to AI/ML with AWSIntroduction to AI/ML with AWS
Introduction to AI/ML with AWS
 

Recently uploaded

LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 

Recently uploaded (20)

LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 

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