{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/1068","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/1068/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/1068/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/1068/events","html_url":"https://github.com/serverless/serverless/issues/1068","id":153004113,"number":1068,"title":"Only one S3 events per bucket for each function possible","user":{"login":"kristiandreher","id":8569016,"avatar_url":"https://avatars.githubusercontent.com/u/8569016?v=3","gravatar_id":"","url":"https://api.github.com/users/kristiandreher","html_url":"https://github.com/kristiandreher","followers_url":"https://api.github.com/users/kristiandreher/followers","following_url":"https://api.github.com/users/kristiandreher/following{/other_user}","gists_url":"https://api.github.com/users/kristiandreher/gists{/gist_id}","starred_url":"https://api.github.com/users/kristiandreher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristiandreher/subscriptions","organizations_url":"https://api.github.com/users/kristiandreher/orgs","repos_url":"https://api.github.com/users/kristiandreher/repos","events_url":"https://api.github.com/users/kristiandreher/events{/privacy}","received_events_url":"https://api.github.com/users/kristiandreher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/serverless/serverless/labels/discussion","name":"discussion","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-04T12:52:53Z","updated_at":"2016-05-12T08:19:35Z","closed_at":null,"body":"It is not possible to configure multiple S3 events for the same bucket for a function.\r\nIf `serverless dash deploy` to deploy the configuration below only Event2 is deployed, however Serverless reports that everything was deployed successfully.\r\nMulitple events for different buckets works fine.\r\n\r\nI am using Serverless v0.5.5.\r\n\r\n```\r\n  \"events\": [\r\n    {\r\n      \"name\" : \"Event1\",\r\n      \"type\": \"s3\",\r\n      \"config\": {\r\n        \"bucket\": \"test-bucket\",\r\n        \"bucketEvents\": [\"s3:ObjectCreated:*\"],\r\n        \"filterRules\": [\r\n          {\r\n            \"name\": \"prefix\",\r\n            \"value\": \"prefix1\"\r\n          }\r\n        ]\r\n      }\r\n    },\r\n    {\r\n      \"name\" : \"Event2\",\r\n      \"type\": \"s3\",\r\n      \"config\": {\r\n        \"bucket\": \"test-bucket\",\r\n        \"bucketEvents\": [\"s3:ObjectCreated:*\"],\r\n        \"filterRules\": [\r\n          {\r\n            \"name\": \"prefix\",\r\n            \"value\": \"prefix2\"\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  ]\r\n```"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/218690636","html_url":"https://github.com/serverless/serverless/issues/1068#issuecomment-218690636","issue_url":"https://api.github.com/repos/serverless/serverless/issues/1068","id":218690636,"user":{"login":"flomotlik","id":132653,"avatar_url":"https://avatars.githubusercontent.com/u/132653?v=3","gravatar_id":"","url":"https://api.github.com/users/flomotlik","html_url":"https://github.com/flomotlik","followers_url":"https://api.github.com/users/flomotlik/followers","following_url":"https://api.github.com/users/flomotlik/following{/other_user}","gists_url":"https://api.github.com/users/flomotlik/gists{/gist_id}","starred_url":"https://api.github.com/users/flomotlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flomotlik/subscriptions","organizations_url":"https://api.github.com/users/flomotlik/orgs","repos_url":"https://api.github.com/users/flomotlik/repos","events_url":"https://api.github.com/users/flomotlik/events{/privacy}","received_events_url":"https://api.github.com/users/flomotlik/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T08:19:35Z","updated_at":"2016-05-12T08:19:35Z","body":"Have you tried adding both filter rules into one event?\r\n\r\n```\r\n{\r\n      \"name\" : \"Event1\",\r\n      \"type\": \"s3\",\r\n      \"config\": {\r\n        \"bucket\": \"test-bucket\",\r\n        \"bucketEvents\": [\"s3:ObjectCreated:*\"],\r\n        \"filterRules\": [\r\n          {\r\n            \"name\": \"prefix\",\r\n            \"value\": \"prefix1\"\r\n          },\r\n          {\r\n            \"name\": \"prefix\",\r\n            \"value\": \"prefix2\"\r\n          }\r\n        ]\r\n      }\r\n    }\r\n```"}}