-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Targets of event rules are duplicated if delete permission is missing #286
Comments
Damn, that's a great bug. Can you confirm that the function is actually executed multiple times concurrently? I guess the issue is that we should raise a warning when this occurs, or do you expect another behavior? |
Ah, dang. Okay, good bug report. This code got messed with recently. Is this against 0.21.0 or master head? |
It is against master head. |
Found the issue: https://github.com/Miserlou/Zappa/blob/master/zappa/zappa.py#L1275 EDIT: Added missing words. |
Excellent sleuthing! Sounds like a good solution to me if you can properly type damn boto3 errors, want to send a PR? 😄 |
Working on it. |
I am experimenting with minimal permissions for the IAM user used by zappa. If the permission for deleting a target/rule is missing, the targets in a schedule are duplicated without that an error is raised. This means, the lambda function gets triggered multiple times simultaneously.
The issue can be reproduced by restricting the event permissions of the Zappa AWS user to the policy below and run
zappa update
.The text was updated successfully, but these errors were encountered: