{"action":"created","comment":{"url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/comments/169540638","pull_request_review_id":98081459,"id":169540638,"diff_hunk":"@@ -0,0 +1,82 @@\n+// Code modified from the example given at\n+// https://codehabitude.com/2016/04/05/forms-to-emails-using-aws-lambda-api-gateway/\n+\n+var AWS = require('aws-sdk')\n+const querystring = require('querystring');\n+\n+// Set the region \n+AWS.config.update({region: 'us-west-2'});","path":"serverless-contact-form.js","position":8,"original_position":8,"commit_id":"b83903710efed1d24258e50c88053b507c4a9877","original_commit_id":"b83903710efed1d24258e50c88053b507c4a9877","user":{"login":"stevemac007","id":540954,"avatar_url":"https://avatars3.githubusercontent.com/u/540954?v=4","gravatar_id":"","url":"https://api.github.com/users/stevemac007","html_url":"https://github.com/stevemac007","followers_url":"https://api.github.com/users/stevemac007/followers","following_url":"https://api.github.com/users/stevemac007/following{/other_user}","gists_url":"https://api.github.com/users/stevemac007/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemac007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemac007/subscriptions","organizations_url":"https://api.github.com/users/stevemac007/orgs","repos_url":"https://api.github.com/users/stevemac007/repos","events_url":"https://api.github.com/users/stevemac007/events{/privacy}","received_events_url":"https://api.github.com/users/stevemac007/received_events","type":"User","site_admin":false},"body":"I forget not everything is here..","created_at":"2018-02-21T05:51:38Z","updated_at":"2018-02-21T05:51:38Z","html_url":"https://github.com/cevoaustralia/cevoaustralia.github.io/pull/277#discussion_r169540638","pull_request_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/comments/169540638"},"html":{"href":"https://github.com/cevoaustralia/cevoaustralia.github.io/pull/277#discussion_r169540638"},"pull_request":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277"}},"in_reply_to_id":169538538},"pull_request":{"url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277","id":170354664,"html_url":"https://github.com/cevoaustralia/cevoaustralia.github.io/pull/277","diff_url":"https://github.com/cevoaustralia/cevoaustralia.github.io/pull/277.diff","patch_url":"https://github.com/cevoaustralia/cevoaustralia.github.io/pull/277.patch","issue_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/277","number":277,"state":"closed","locked":false,"title":"Serverless contact form","user":{"login":"tpartington","id":6980747,"avatar_url":"https://avatars2.githubusercontent.com/u/6980747?v=4","gravatar_id":"","url":"https://api.github.com/users/tpartington","html_url":"https://github.com/tpartington","followers_url":"https://api.github.com/users/tpartington/followers","following_url":"https://api.github.com/users/tpartington/following{/other_user}","gists_url":"https://api.github.com/users/tpartington/gists{/gist_id}","starred_url":"https://api.github.com/users/tpartington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpartington/subscriptions","organizations_url":"https://api.github.com/users/tpartington/orgs","repos_url":"https://api.github.com/users/tpartington/repos","events_url":"https://api.github.com/users/tpartington/events{/privacy}","received_events_url":"https://api.github.com/users/tpartington/received_events","type":"User","site_admin":false},"body":"use api-gateway and lambda for the cevo-website contact form.\r\nthe api-key is used to enforce rate limiting on the server side so it's not a secret.\r\n\r\nthis implementation will throttle requests to 1 per second. and will only allow 50 requests a day.\r\n\r\nstill to come is monitoring and alerting so we know when this is broken.\r\nwe should also disable the submit button once it has been clicked to avoid duplicate submissions while the async request is in flight.","created_at":"2018-02-21T01:25:38Z","updated_at":"2018-02-21T05:51:38Z","closed_at":"2018-02-21T05:45:18Z","merged_at":"2018-02-21T05:45:18Z","merge_commit_sha":"b5b983bf0e328b252f1e2dad360f82a2e2f722be","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277/commits","review_comments_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277/comments","review_comment_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/277/comments","statuses_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/statuses/b83903710efed1d24258e50c88053b507c4a9877","head":{"label":"cevoaustralia:serverless-contact-form","ref":"serverless-contact-form","sha":"b83903710efed1d24258e50c88053b507c4a9877","user":{"login":"cevoaustralia","id":17036633,"avatar_url":"https://avatars2.githubusercontent.com/u/17036633?v=4","gravatar_id":"","url":"https://api.github.com/users/cevoaustralia","html_url":"https://github.com/cevoaustralia","followers_url":"https://api.github.com/users/cevoaustralia/followers","following_url":"https://api.github.com/users/cevoaustralia/following{/other_user}","gists_url":"https://api.github.com/users/cevoaustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/cevoaustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cevoaustralia/subscriptions","organizations_url":"https://api.github.com/users/cevoaustralia/orgs","repos_url":"https://api.github.com/users/cevoaustralia/repos","events_url":"https://api.github.com/users/cevoaustralia/events{/privacy}","received_events_url":"https://api.github.com/users/cevoaustralia/received_events","type":"Organization","site_admin":false},"repo":{"id":50963631,"name":"cevoaustralia.github.io","full_name":"cevoaustralia/cevoaustralia.github.io","owner":{"login":"cevoaustralia","id":17036633,"avatar_url":"https://avatars2.githubusercontent.com/u/17036633?v=4","gravatar_id":"","url":"https://api.github.com/users/cevoaustralia","html_url":"https://github.com/cevoaustralia","followers_url":"https://api.github.com/users/cevoaustralia/followers","following_url":"https://api.github.com/users/cevoaustralia/following{/other_user}","gists_url":"https://api.github.com/users/cevoaustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/cevoaustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cevoaustralia/subscriptions","organizations_url":"https://api.github.com/users/cevoaustralia/orgs","repos_url":"https://api.github.com/users/cevoaustralia/repos","events_url":"https://api.github.com/users/cevoaustralia/events{/privacy}","received_events_url":"https://api.github.com/users/cevoaustralia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cevoaustralia/cevoaustralia.github.io","description":"Static website for cevo.com.au","fork":false,"url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io","forks_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/forks","keys_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/teams","hooks_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/hooks","issue_events_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/events","assignees_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/tags","blobs_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/languages","stargazers_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/stargazers","contributors_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/contributors","subscribers_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/subscribers","subscription_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/subscription","commits_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/merges","archive_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/downloads","issues_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/labels{/name}","releases_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/deployments","created_at":"2016-02-03T01:01:46Z","updated_at":"2018-01-10T05:57:07Z","pushed_at":"2018-02-21T05:45:19Z","git_url":"git://github.com/cevoaustralia/cevoaustralia.github.io.git","ssh_url":"git@github.com:cevoaustralia/cevoaustralia.github.io.git","clone_url":"https://github.com/cevoaustralia/cevoaustralia.github.io.git","svn_url":"https://github.com/cevoaustralia/cevoaustralia.github.io","homepage":"https://cevo.com.au/","size":182218,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":15,"license":null,"forks":8,"open_issues":15,"watchers":5,"default_branch":"develop"}},"base":{"label":"cevoaustralia:develop","ref":"develop","sha":"c3015a52e1df1ffef7be587c10a041a1201d14fb","user":{"login":"cevoaustralia","id":17036633,"avatar_url":"https://avatars2.githubusercontent.com/u/17036633?v=4","gravatar_id":"","url":"https://api.github.com/users/cevoaustralia","html_url":"https://github.com/cevoaustralia","followers_url":"https://api.github.com/users/cevoaustralia/followers","following_url":"https://api.github.com/users/cevoaustralia/following{/other_user}","gists_url":"https://api.github.com/users/cevoaustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/cevoaustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cevoaustralia/subscriptions","organizations_url":"https://api.github.com/users/cevoaustralia/orgs","repos_url":"https://api.github.com/users/cevoaustralia/repos","events_url":"https://api.github.com/users/cevoaustralia/events{/privacy}","received_events_url":"https://api.github.com/users/cevoaustralia/received_events","type":"Organization","site_admin":false},"repo":{"id":50963631,"name":"cevoaustralia.github.io","full_name":"cevoaustralia/cevoaustralia.github.io","owner":{"login":"cevoaustralia","id":17036633,"avatar_url":"https://avatars2.githubusercontent.com/u/17036633?v=4","gravatar_id":"","url":"https://api.github.com/users/cevoaustralia","html_url":"https://github.com/cevoaustralia","followers_url":"https://api.github.com/users/cevoaustralia/followers","following_url":"https://api.github.com/users/cevoaustralia/following{/other_user}","gists_url":"https://api.github.com/users/cevoaustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/cevoaustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cevoaustralia/subscriptions","organizations_url":"https://api.github.com/users/cevoaustralia/orgs","repos_url":"https://api.github.com/users/cevoaustralia/repos","events_url":"https://api.github.com/users/cevoaustralia/events{/privacy}","received_events_url":"https://api.github.com/users/cevoaustralia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cevoaustralia/cevoaustralia.github.io","description":"Static website for cevo.com.au","fork":false,"url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io","forks_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/forks","keys_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/teams","hooks_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/hooks","issue_events_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/events","assignees_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/tags","blobs_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/languages","stargazers_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/stargazers","contributors_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/contributors","subscribers_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/subscribers","subscription_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/subscription","commits_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/merges","archive_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/downloads","issues_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/labels{/name}","releases_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/deployments","created_at":"2016-02-03T01:01:46Z","updated_at":"2018-01-10T05:57:07Z","pushed_at":"2018-02-21T05:45:19Z","git_url":"git://github.com/cevoaustralia/cevoaustralia.github.io.git","ssh_url":"git@github.com:cevoaustralia/cevoaustralia.github.io.git","clone_url":"https://github.com/cevoaustralia/cevoaustralia.github.io.git","svn_url":"https://github.com/cevoaustralia/cevoaustralia.github.io","homepage":"https://cevo.com.au/","size":182218,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":15,"license":null,"forks":8,"open_issues":15,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277"},"html":{"href":"https://github.com/cevoaustralia/cevoaustralia.github.io/pull/277"},"issue":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/277"},"comments":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/cevoaustralia/cevoaustralia.github.io/statuses/b83903710efed1d24258e50c88053b507c4a9877"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stevemac007"}}