Chapter 6: Serverless

AWS Lambda

AWS Lambda is a building block for many things on AWS.

SCREENCAST: AWS Lambda as a Garage Lightbulb[

![](https://img.youtube.com/vi/nNKYwxf96bk/0.jpg)

](https://youtu.be/nNKYwxf96bk)

SCREENCAST: Hello World Lambda[

![](https://img.youtube.com/vi/Z6DhCYv42P4/0.jpg)

](https://youtu.be/Z6DhCYv42P4)

SCREENCAST: Marco Polo Lambda[

![](https://img.youtube.com/vi/AlRUeNFuObk/0.jpg)

](https://youtu.be/AlRUeNFuObk)

gist for Marco

1 def lambda_handler(event, context):
2   if event["name"] == "Marco":
3     return "Polo"

gist for Polo

1 def lambda_handler(event, context):
2   if event["name"] == "Polo":
3     return "Marco"

Developing AWS Lambda Functions with AWS Cloud9

Cloud9 has many capabilities built in the ...

Get 20200406PAIML-Raw-Unedited now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.