{"action":"created","issue":{"url":"https://api.github.com/repos/Miserlou/Zappa/issues/506","repository_url":"https://api.github.com/repos/Miserlou/Zappa","labels_url":"https://api.github.com/repos/Miserlou/Zappa/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/Miserlou/Zappa/issues/506/comments","events_url":"https://api.github.com/repos/Miserlou/Zappa/issues/506/events","html_url":"https://github.com/Miserlou/Zappa/issues/506","id":192904407,"number":506,"title":"Zappa doesn't report if it fails to add a event source that is already listened-to","user":{"login":"horenmar","id":9026413,"avatar_url":"https://avatars.githubusercontent.com/u/9026413?v=3","gravatar_id":"","url":"https://api.github.com/users/horenmar","html_url":"https://github.com/horenmar","followers_url":"https://api.github.com/users/horenmar/followers","following_url":"https://api.github.com/users/horenmar/following{/other_user}","gists_url":"https://api.github.com/users/horenmar/gists{/gist_id}","starred_url":"https://api.github.com/users/horenmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horenmar/subscriptions","organizations_url":"https://api.github.com/users/horenmar/orgs","repos_url":"https://api.github.com/users/horenmar/repos","events_url":"https://api.github.com/users/horenmar/events{/privacy}","received_events_url":"https://api.github.com/users/horenmar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-01T17:02:00Z","updated_at":"2016-12-02T22:45:25Z","closed_at":null,"body":"I had a `zappa_settings.json` with this event source (the bucket name is fake obviously).\r\n```\r\n\"event_source\": {\r\n    \"arn\":  \"arn:aws:s3:::bucket-name\",\r\n    \"events\": [\r\n        \"s3:ObjectCreated:*\"\r\n    ]\r\n}\r\n```\r\nby mistake, I specified a bucket that already was used as event source for a different lambda. \r\n\r\nBecause AWS S3 does not support sending more than one event per uploaded file (multiple notifications can be set for a bucket, but they must not overlap), setting this event source as a trigger for the lambda fails, but zappa reports successful deployment.\r\n\r\nI would expect/like zappa to abort the deployment with some error message."},"comment":{"url":"https://api.github.com/repos/Miserlou/Zappa/issues/comments/264582842","html_url":"https://github.com/Miserlou/Zappa/issues/506#issuecomment-264582842","issue_url":"https://api.github.com/repos/Miserlou/Zappa/issues/506","id":264582842,"user":{"login":"horenmar","id":9026413,"avatar_url":"https://avatars.githubusercontent.com/u/9026413?v=3","gravatar_id":"","url":"https://api.github.com/users/horenmar","html_url":"https://github.com/horenmar","followers_url":"https://api.github.com/users/horenmar/followers","following_url":"https://api.github.com/users/horenmar/following{/other_user}","gists_url":"https://api.github.com/users/horenmar/gists{/gist_id}","starred_url":"https://api.github.com/users/horenmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horenmar/subscriptions","organizations_url":"https://api.github.com/users/horenmar/orgs","repos_url":"https://api.github.com/users/horenmar/repos","events_url":"https://api.github.com/users/horenmar/events{/privacy}","received_events_url":"https://api.github.com/users/horenmar/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T22:45:25Z","updated_at":"2016-12-02T22:45:25Z","body":"Zappa outputs this\r\n`s3:ObjectCreated:* event schedule for archiver.lambda_handler already exists - Nothing to do here.` when this happens. When overwriting actual event source for given lambda, it writes the same message as when creating it for the first time, that is `Created s3:ObjectCreated:* event schedule for archiver.lambda_handler!`.\r\n\r\nI don't have a PR and I am not sure when I can get around to fixing this."}}
{"actor":{"display_login":"horenmar"}}