Skip to main content

Parse SQS messages from lambda triggered SQS subscription

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lambda_parse_sqs-0.1.16.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

lambda_parse_sqs-0.1.16-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page