July 2018
Intermediate to advanced
324 pages
8h 14m
English
Zappa supports both scheduled events and AWS events. Scheduled events are bound to time and date, whereas AWS events are related to any AWS service such as AWS S3 events and more.
We can schedule the Lambda function execution based on any AWS events, as shown in the following code snippet:
{ "production": { ... "events": [{ "function": "your_module.process_upload_function", "event_source": { "arn": "arn:aws:s3:::my-bucket", "events": [ "s3:ObjectCreated:*" ] } }], ... }}
Zappa supports almost all AWS events to execute the AWS lambda function. You can read more about execution in response to AWS events at https://github.com/Miserlou/Zappa#executing-in-response-to-aws-events.
Once you add the events configuration, ...
Read now
Unlock full access