-
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
Scheduling event on s3 bucket fails #1442
Labels
Comments
This is an AWS bug. See
https://aws.amazon.com/blogs/compute/fanout-s3-event-notifications-to-multiple-endpoints/
for
workaround until AWS either fixes it... or not.
…On Wed, Mar 14, 2018 at 12:06 PM Jesse Peters ***@***.***> wrote:
Context
Using zappa on python 3.6 inside a venv.
Expected Behavior
I have an s3 bucket which has a few existing event subscriptions. There is
no overlap with the event subscription that zappa is trying to manage. I
expect to be able to schedule a new subscription with zappa, even if there
are already some on the bucket.
Actual Behavior
It looks at the bucket, and says that the event schedule already exists.
Possible Fix
I suspect it is only looking at the event types, and does not actually
look at the filters when looking to see if an s3 event subscription already
exists.
Steps to Reproduce
1. Add an event subscription on prefix A manually to an s3 bucket
2. Attempt to schedule zappa with an event subscription on prefix B.
It should tell you that the event subscription already exists.
Your Environment
- Zappa version used: 0.45.1
- Your zappa_settings.py:
{
"function": "app.function",
"event_source": {
"arn": "arn:aws:s3:::s3bucketname",
"key_filters": [{
"type": "prefix",
"value": "A"
}],
"events": [
"s3:ObjectCreated:*"
]
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1442>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACjB_gU1yaiIQCrdKce-ihBVbmL6vStyks5teUAAgaJpZM4SquHL>
.
|
Sorry if I closed this too early. (-: reopened. |
Closed
I also am seeing this issue where zappa updates are deleting other pre-existing events on an s3 bucket. Is this going to be resolved any time soon? |
*Bump this is affecting me too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Using zappa on python 3.6 inside a venv.
Expected Behavior
I have an s3 bucket which has a few existing event subscriptions. There is no overlap with the event subscription that zappa is trying to manage. I expect to be able to schedule a new subscription with zappa, even if there are already some on the bucket.
Actual Behavior
It looks at the bucket, and says that the event schedule already exists.
Possible Fix
I suspect it is only looking at the event types, and does not actually look at the filters when looking to see if an s3 event subscription already exists.
Steps to Reproduce
Your Environment
zappa_settings.py
:The text was updated successfully, but these errors were encountered: