Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple slack messages with the same event id #69

Open
nitrocode opened this issue May 11, 2023 · 1 comment
Open

Multiple slack messages with the same event id #69

nitrocode opened this issue May 11, 2023 · 1 comment

Comments

@nitrocode
Copy link
Contributor

I'm unsure why but I'm receiving multiple slack messages for the same events with the same event ids in the dame compressed file path.

I received 10 alerts today of dynamodb:deletetable every 7 min to every 1.5 hrs. For now, it might be easier to exclude this action but i wouldnt be surprised if this happens with another action

It's almost as if it processes the sqs message but it doesnt get removed from the queue?

@nitrocode
Copy link
Contributor Author

nitrocode commented May 31, 2024

Perhaps this is due to using s3:ObjectCreated:* instead of simply s3:ObjectCreated:Put ?

events = ["s3:ObjectCreated:*"]

Or maybe switching to EventBridge can be used to publish events ?

https://aws.amazon.com/blogs/aws/new-use-amazon-s3-event-notifications-with-amazon-eventbridge/

Or maybe using a FIFO queue with deduplication would reduce this issue ?


One way to do it would be to create a dynamodb table that would record all event ids that were sent to slack. If the same event id appears, then ignore it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant