{"action":"opened","issue":{"url":"https://api.github.com/repos/matt-filion/serverless-external-s3-event/issues/53","repository_url":"https://api.github.com/repos/matt-filion/serverless-external-s3-event","labels_url":"https://api.github.com/repos/matt-filion/serverless-external-s3-event/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/matt-filion/serverless-external-s3-event/issues/53/comments","events_url":"https://api.github.com/repos/matt-filion/serverless-external-s3-event/issues/53/events","html_url":"https://github.com/matt-filion/serverless-external-s3-event/issues/53","id":317439852,"number":53,"title":"'prefixes are overlapping for the same event type' error with different event types","user":{"login":"kwhumphreys","id":5767238,"avatar_url":"https://avatars1.githubusercontent.com/u/5767238?v=4","gravatar_id":"","url":"https://api.github.com/users/kwhumphreys","html_url":"https://github.com/kwhumphreys","followers_url":"https://api.github.com/users/kwhumphreys/followers","following_url":"https://api.github.com/users/kwhumphreys/following{/other_user}","gists_url":"https://api.github.com/users/kwhumphreys/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhumphreys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhumphreys/subscriptions","organizations_url":"https://api.github.com/users/kwhumphreys/orgs","repos_url":"https://api.github.com/users/kwhumphreys/repos","events_url":"https://api.github.com/users/kwhumphreys/events{/privacy}","received_events_url":"https://api.github.com/users/kwhumphreys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T00:26:10Z","updated_at":"2018-04-25T00:26:10Z","closed_at":null,"author_association":"NONE","body":"defining separate events (ObjectCreated/ObjectRemoved) for the same suffix gives:\r\n`Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.`\r\n\r\n```\r\nfunctions:\r\n  upload:\r\n    handler: src/handler.upload\r\n    events:\r\n      - existingS3:\r\n          bucket: BUCKET\r\n          events:\r\n            - s3:ObjectCreated:*\r\n          rules:\r\n            - suffix: .json\r\n  remove:\r\n    handler: src/handler.remove\r\n    events:\r\n      - existingS3:\r\n          bucket: BUCKET\r\n          events:\r\n            - s3:ObjectRemoved:*\r\n          rules:\r\n            - suffix: .json\r\n```"}}
{"actor":{"display_login":"kwhumphreys"}}