Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.41 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.41 KB

Actions Status Python 3.7 PyPI version License: MIT Total alerts Language grade: Python Twitter Follow

Lambda Parse SQS Messages

When creating a Lambda subscription to consume SQS events, it's possible to receive multiple messages at once function invocation. So, its necessary to parse message body and iterate over multiple events.

pip install lambda-parse-sqs
from lambda_parse_sqs import parse_messages

def lambda_handler(event, context):

    messages = parse_messages(event)
    for message in messages:
        # Do wethever you want