{"action":"opened","issue":{"url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/723","repository_url":"https://api.github.com/repos/awslabs/aws-sam-cli","labels_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/723/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/723/comments","events_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/723/events","html_url":"https://github.com/awslabs/aws-sam-cli/issues/723","id":372551953,"node_id":"MDU6SXNzdWUzNzI1NTE5NTM=","number":723,"title":"sam init --runtime nodejs8.10 needs to create src/index.js","user":{"login":"holtc","id":3432492,"node_id":"MDQ6VXNlcjM0MzI0OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3432492?v=4","gravatar_id":"","url":"https://api.github.com/users/holtc","html_url":"https://github.com/holtc","followers_url":"https://api.github.com/users/holtc/followers","following_url":"https://api.github.com/users/holtc/following{/other_user}","gists_url":"https://api.github.com/users/holtc/gists{/gist_id}","starred_url":"https://api.github.com/users/holtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtc/subscriptions","organizations_url":"https://api.github.com/users/holtc/orgs","repos_url":"https://api.github.com/users/holtc/repos","events_url":"https://api.github.com/users/holtc/events{/privacy}","received_events_url":"https://api.github.com/users/holtc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-22T14:46:15Z","updated_at":"2018-10-22T14:46:15Z","closed_at":null,"author_association":"NONE","body":"**Description:**\r\n\r\n`sam init --runtime nodejs8.10` needs to create the `src/index.js` in order for the `sam local start-api` command to work out of the box.\r\n\r\n**Steps to reproduce the issue:**\r\n1. run `sam init --runtime nodejs8.10`\r\n2. run `sam local start-api`\r\n3. go to `127.0.0.1:3000/hello`\r\n\r\n**Observed result:**\r\nYou will get the following error:\r\n ```\r\nUnable to import module 'app': Error\r\n    at Function.Module._resolveFilename (module.js:547:15)\r\n    at Function.Module._load (module.js:474:25)\r\n    at Module.require (module.js:596:17)\r\n    at require (internal/module.js:11:18)\r\n```\r\n\r\n\r\n**Expected result:**\r\nShould work fine\r\n\r\n**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)**\r\nMac High Sierra 10.13.6\r\n**Output of `sam --version`**:\r\nSAM CLI, version 0.6.0"}}
{"actor":{"display_login":"holtc"}}