Skip to Main Content
Building Serverless Python Web Services with Zappa
book

Building Serverless Python Web Services with Zappa

by Abdulwahid Abdulhaque Barguzar
July 2018
Intermediate to advanced content levelIntermediate to advanced
324 pages
8h 14m
English
Packt Publishing
Content preview from Building Serverless Python Web Services with Zappa

Creating Lambda triggers

The Lambda function can be configured in response to events. AWS provides a list of triggers that support lots of events. These triggers belong to their associated AWS services.

You can add a trigger to your Lambda function from the triggers section.

I am going to slightly modify the hello world Lambda function. Here, we are printing the request ID, which is received in the context object as an aws_request_id attribute. It also prints the timestamp:

Now, we are going to add a trigger to our Lambda function that will execute our Lambda function every minute.

The following screenshot shows the Add trigger flow, where ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

Jaime Buelta

Publisher Resources

ISBN: 9781788837613Supplemental Content