aws / aws/chalice

Support of Return Batch Failure Item for SQS

Open
#2,029 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

Hi,
We are using Chalice and Terraform to deploy our application. We would like to use the the Return Batch Failure Item for message that fail during the process of an SQS event.
Actually, it work if we manually mark the checkbox in the Lambda SQS Trigger in the console and return the `return {"batchItemFailures": {"itemIdentifier": record._event_dict.get('messageId')}}.`
But since we are all automated and trying to avoid manual configuration, is there a plan to add the support of it in the @app.on_sqs_message parameters?
Or is there any way to automate it in other way but still using the annotation?
Thanks

Contributor guide

Open the contributing guide

Research direction

Start at the @app.on_sqs_message annotation and trace how its parameters configure the SQS Lambda trigger. Check the existing SQS event configuration and related tests, then verify that the annotation enables batch item failure handling and that the automated deployment configuration reflects it.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.