I often touch AWS.
I was a little addicted to AWS SNS.
For some reason, the message was successfully sent from AWS SNS via lambda, but duplicate messages are sent.
In the first place, it seemed to be duplicated from SNS to lambda.
Setting `` `numRetries``` to 0 in the delivery retry policy does not help.
I had to send a success status in a response message when I finished processing with lambda. (The following is python, but other languages are the same)
## In a lambda function
def main()
...
return {
'statusCode': 200
}
This will eliminate duplicate delivery.