{"action":"created","issue":{"url":"https://api.github.com/repos/DavidCain/mitoc-member/issues/1","repository_url":"https://api.github.com/repos/DavidCain/mitoc-member","labels_url":"https://api.github.com/repos/DavidCain/mitoc-member/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DavidCain/mitoc-member/issues/1/comments","events_url":"https://api.github.com/repos/DavidCain/mitoc-member/issues/1/events","html_url":"https://github.com/DavidCain/mitoc-member/pull/1","id":325132006,"number":1,"title":"add serverless config","user":{"login":"chaoranxie","id":722794,"avatar_url":"https://avatars3.githubusercontent.com/u/722794?v=4","gravatar_id":"","url":"https://api.github.com/users/chaoranxie","html_url":"https://github.com/chaoranxie","followers_url":"https://api.github.com/users/chaoranxie/followers","following_url":"https://api.github.com/users/chaoranxie/following{/other_user}","gists_url":"https://api.github.com/users/chaoranxie/gists{/gist_id}","starred_url":"https://api.github.com/users/chaoranxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaoranxie/subscriptions","organizations_url":"https://api.github.com/users/chaoranxie/orgs","repos_url":"https://api.github.com/users/chaoranxie/repos","events_url":"https://api.github.com/users/chaoranxie/events{/privacy}","received_events_url":"https://api.github.com/users/chaoranxie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-22T03:52:43Z","updated_at":"2018-05-22T03:58:25Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/DavidCain/mitoc-member/pulls/1","html_url":"https://github.com/DavidCain/mitoc-member/pull/1","diff_url":"https://github.com/DavidCain/mitoc-member/pull/1.diff","patch_url":"https://github.com/DavidCain/mitoc-member/pull/1.patch"},"body":"This is just a POC\r\n\r\nyou have to run the following commands\r\n\r\n```\r\nnpm install -g serverless\r\nnpm intall \r\nsls create_domain\r\nsls deploy\r\n\r\ncurl -v  -X POST https://159yfsdrnd.execute-api.us-east-1.amazonaws.com/dev/members/membershiptest\r\n\r\n#You have to wait couple more minutes for this domain to work\r\ncurl -v  -X POST https://mitoc-member.heychao.com/members/membershiptest\r\n```\r\n\r\n\r\nSample output from the above commands\r\n\r\n```\r\n(mitoc-member) ➜  mitoc-member git:(run_on_lambda) ✗ sls create_domain\r\nServerless: Skipping creation of Route53 record.\r\nServerless: 'mitoc-member.heychao.com' was created/updated. New domains may take up to 40 minutes to be initialized.\r\n\r\n\r\n(mitoc-member) ➜  mitoc-member git:(run_on_lambda) ✗ sls deploy\r\nServerless: WarmUP: setting 1 lambdas to be warm\r\nServerless: WarmUP: mitoc-member-dev-app\r\nServerless: Installing requirements of requirements.txt in .serverless...\r\nServerless: Docker Image: lambci/lambda:build-python3.6\r\nServerless: Packaging Python WSGI handler...\r\nServerless: Packaging service...\r\nServerless: Excluding development dependencies...\r\nServerless: Excluding development dependencies...\r\nServerless: Injecting required Python packages to package...\r\nServerless: Creating Stack...\r\nServerless: Checking Stack create progress...\r\n.....\r\nServerless: Stack create finished...\r\nServerless: Uploading CloudFormation file to S3...\r\nServerless: Uploading artifacts...\r\nServerless: Uploading service .zip file to S3 (1.99 MB)...\r\nServerless: Uploading service .zip file to S3 (3.28 KB)...\r\nServerless: Validating template...\r\nServerless: Updating Stack...\r\nServerless: Checking Stack update progress...\r\n...................................................\r\nServerless: Stack update finished...\r\nService Information\r\nservice: mitoc-member\r\nstage: dev\r\nregion: us-east-1\r\nstack: mitoc-member-dev\r\napi keys:\r\n  None\r\nendpoints:\r\n  ANY - https://159yfsdrnd.execute-api.us-east-1.amazonaws.com/dev\r\n  ANY - https://159yfsdrnd.execute-api.us-east-1.amazonaws.com/dev/{proxy+}\r\nfunctions:\r\n  app: mitoc-member-dev-app\r\n  warmUpPlugin: mitoc-member-dev-warmUpPlugin\r\nServerless Domain Manager Summary\r\nDistribution Domain Name\r\n  d2hg1h5u1003p1.cloudfront.net\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/DavidCain/mitoc-member/issues/comments/390855416","html_url":"https://github.com/DavidCain/mitoc-member/pull/1#issuecomment-390855416","issue_url":"https://api.github.com/repos/DavidCain/mitoc-member/issues/1","id":390855416,"user":{"login":"DavidCain","id":901169,"avatar_url":"https://avatars3.githubusercontent.com/u/901169?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidCain","html_url":"https://github.com/DavidCain","followers_url":"https://api.github.com/users/DavidCain/followers","following_url":"https://api.github.com/users/DavidCain/following{/other_user}","gists_url":"https://api.github.com/users/DavidCain/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidCain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidCain/subscriptions","organizations_url":"https://api.github.com/users/DavidCain/orgs","repos_url":"https://api.github.com/users/DavidCain/repos","events_url":"https://api.github.com/users/DavidCain/events{/privacy}","received_events_url":"https://api.github.com/users/DavidCain/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T03:58:25Z","updated_at":"2018-05-22T03:58:25Z","author_association":"OWNER","body":"This is awesome. Thanks so much for putting up the POC! I'll look into whether or not Lambda makes sense for deploying mitoc-member in production and get back to you!"}}
{"actor":{"display_login":"DavidCain"}}