{"action":"opened","issue":{"url":"https://api.github.com/repos/lorennorman/ruby-on-lambda/issues/2","repository_url":"https://api.github.com/repos/lorennorman/ruby-on-lambda","labels_url":"https://api.github.com/repos/lorennorman/ruby-on-lambda/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lorennorman/ruby-on-lambda/issues/2/comments","events_url":"https://api.github.com/repos/lorennorman/ruby-on-lambda/issues/2/events","html_url":"https://github.com/lorennorman/ruby-on-lambda/issues/2","id":132257157,"number":2,"title":"Lambda function must first be created?","user":{"login":"manuelmeurer","id":16672,"avatar_url":"https://avatars.githubusercontent.com/u/16672?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelmeurer","html_url":"https://github.com/manuelmeurer","followers_url":"https://api.github.com/users/manuelmeurer/followers","following_url":"https://api.github.com/users/manuelmeurer/following{/other_user}","gists_url":"https://api.github.com/users/manuelmeurer/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelmeurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelmeurer/subscriptions","organizations_url":"https://api.github.com/users/manuelmeurer/orgs","repos_url":"https://api.github.com/users/manuelmeurer/repos","events_url":"https://api.github.com/users/manuelmeurer/events{/privacy}","received_events_url":"https://api.github.com/users/manuelmeurer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-08T21:08:05Z","updated_at":"2016-02-08T21:08:05Z","closed_at":null,"body":"Hey,\r\n\r\nFirst: thanks for putting this code on here, helped me a lot!\r\n\r\nI'm trying to get a \"hello world\" to work, followed the instructions in the README but at the point where `aws lambda update-function-code` is called, I see this error:\r\n\r\n```\r\nA client error (ResourceNotFoundException) occurred when calling the UpdateFunctionCode operation: Function not found: arn:aws:lambda:us-east-1:080694036296:function:helloRuby\r\n```\r\n\r\nFrom `aws lambda update-function-code help`:\r\n\r\n```\r\nUpdates the code for the specified Lambda function. This operation must\r\nonly be used on an existing Lambda  function  and  cannot  be  used  to\r\nupdate the function configuration.\r\n```\r\n\r\nMaybe `update-function-code` could be used to create functions as well back when you wrote your code?\r\nI'll try to make it work with `create-function` now, but when rerunning it, we'll probably need to check if the function exists first..."}}