如何在消息到达SQS时触发AWS Lambda(Python),处理后从队列中删除消息?

How to Trigger AWS Lambda(Python) when a message arrives in the SQS,delete the message from the queue after processing?

如何在消息到达SQS时触发AWS Lambda函数(Python),并将消息传递给HTTP Endpoint,处理完API中的数据后,删除消息来自 SQS 队列?我怎样才能在 Python lambda 中实现这个?

您可以创建一个 SQS trigger on a Lambda function to process the messages off the queue. If the function successfully processes the messages in a batch without any errors, they are deleted from the queue with the right permissions