{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/comments/38374756","id":38374756,"diff_hunk":"@@ -0,0 +1,126 @@\n+//\n+// INSTANCES\n+//\n+resource \"aws_key_pair\" \"spark-poc\" {\n+    key_name = \"spark-poc\"\n+    public_key = \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCw3f97M5BnuAUWtBn0tlFLmHKNWswQmt6rfViIYoKKtQiFY6FW5ORYe1FnsRco7rxSpNnSDAuDjYnEqCYn4dxAxgnqsMHbN4r67rebomp9t6x0+LWjNh36LT9qAMeHiuDrW2AV0Zo8g1eOqjUUzzUmDljUo/o+wq/wAIoG2ML8nsguUJkvmkxufes+RRN8VZ2RWCqTC3QQmPnjiSOeIsxSHlh+0aXJYg28BQe880SV7Dyw1n5O+QrbbKC9cr0NzoFrJr+GNVBNOAYouHVg5fLB4NzY7v+OVvyEmMzukiTrnbompn/+eLv3MZ8ULI1UXyFqpRMC++7d//xkjjyDKlzkMq1euLmkyEcvA5swTGszhxvk/mU5Lfe2NNAKiVvtLm8oGm1q/20d/VsrCulXZC6XPs+zFwcsdZQipOWQMduQtUMJrxCsL9RqJzwwRRTnHJS2NUsuG3XeYwkElJ3pIGB1hP2bRorY9HWjg11loFpQPSrSfqpaHyX2Wg0b+uY9ltoH4TXyAqcCyLCezZhtBzgHMQZP7udHwmuoKPFt/9AUL/t2t2kT7AMl8Ix8p3L2ooj/5rVLNTXfIHy1kqHK6mk2DEKlX+EerFoYZcejegJ8BjtdfjVzlNFZ4Fkf7RUbq+xtvl1Arb7iVntRgDuGyYlGDoLH6Rsen5Txi6KJlk2diQ== cameron@hashicorp.com\"\n+}\n+\n+resource \"template_file\" \"consul-update\" {\n+    filename = \"${path.module}/userdata/consul-update.sh.tpl\"\n+\n+    vars {\n+        region = \"${var.region}\"\n+        atlas_username = \"${var.atlas_username}\"\n+        atlas_environment = \"${var.atlas_environment}\"\n+        atlas_user_token = \"${var.atlas_user_token}\"\n+        consul_bootstrap_expect = \"${var.consul_bootstrap_expect}\"\n+    }\n+}\n+\n+resource \"template_file\" \"spark-master-start\" {\n+    filename = \"${path.module}/userdata/spark-master-start.sh.tpl\"\n+\n+    vars {\n+        region = \"${var.region}\"\n+        atlas_username = \"${var.atlas_username}\"\n+        atlas_environment = \"${var.atlas_environment}\"\n+        atlas_user_token = \"${var.atlas_user_token}\"\n+        consul_bootstrap_expect = \"${var.consul_bootstrap_expect}\"","path":"spark/terraform/instances.tf","position":29,"original_position":29,"commit_id":"5f7b21c0e41c5e4155c891d454c530d38c9779d1","original_commit_id":"5f7b21c0e41c5e4155c891d454c530d38c9779d1","user":{"login":"KFishner","id":1972457,"avatar_url":"https://avatars.githubusercontent.com/u/1972457?v=3","gravatar_id":"","url":"https://api.github.com/users/KFishner","html_url":"https://github.com/KFishner","followers_url":"https://api.github.com/users/KFishner/followers","following_url":"https://api.github.com/users/KFishner/following{/other_user}","gists_url":"https://api.github.com/users/KFishner/gists{/gist_id}","starred_url":"https://api.github.com/users/KFishner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KFishner/subscriptions","organizations_url":"https://api.github.com/users/KFishner/orgs","repos_url":"https://api.github.com/users/KFishner/repos","events_url":"https://api.github.com/users/KFishner/events{/privacy}","received_events_url":"https://api.github.com/users/KFishner/received_events","type":"User","site_admin":false},"body":"boostrap isnt necessary on non-consul master","created_at":"2015-09-01T00:13:16Z","updated_at":"2015-09-01T00:13:16Z","html_url":"https://github.com/hashicorp/atlas-examples/pull/56#discussion_r38374756","pull_request_url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/comments/38374756"},"html":{"href":"https://github.com/hashicorp/atlas-examples/pull/56#discussion_r38374756"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56","id":43824349,"html_url":"https://github.com/hashicorp/atlas-examples/pull/56","diff_url":"https://github.com/hashicorp/atlas-examples/pull/56.diff","patch_url":"https://github.com/hashicorp/atlas-examples/pull/56.patch","issue_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues/56","number":56,"state":"open","locked":false,"title":"Spark project w/ Packer, Terraform, Consul and Atlas","user":{"login":"clstokes","id":293763,"avatar_url":"https://avatars.githubusercontent.com/u/293763?v=3","gravatar_id":"","url":"https://api.github.com/users/clstokes","html_url":"https://github.com/clstokes","followers_url":"https://api.github.com/users/clstokes/followers","following_url":"https://api.github.com/users/clstokes/following{/other_user}","gists_url":"https://api.github.com/users/clstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/clstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clstokes/subscriptions","organizations_url":"https://api.github.com/users/clstokes/orgs","repos_url":"https://api.github.com/users/clstokes/repos","events_url":"https://api.github.com/users/clstokes/events{/privacy}","received_events_url":"https://api.github.com/users/clstokes/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-01T00:02:28Z","updated_at":"2015-09-01T00:13:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77665afae9083b0ed7964c3cb49d83501e09ed58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56/commits","review_comments_url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56/comments","review_comment_url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues/56/comments","statuses_url":"https://api.github.com/repos/hashicorp/atlas-examples/statuses/5f7b21c0e41c5e4155c891d454c530d38c9779d1","head":{"label":"hashicorp:spark","ref":"spark","sha":"5f7b21c0e41c5e4155c891d454c530d38c9779d1","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":27932443,"name":"atlas-examples","full_name":"hashicorp/atlas-examples","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/atlas-examples","description":"Public examples for using Atlas by HashiCorp","fork":false,"url":"https://api.github.com/repos/hashicorp/atlas-examples","forks_url":"https://api.github.com/repos/hashicorp/atlas-examples/forks","keys_url":"https://api.github.com/repos/hashicorp/atlas-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/atlas-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/atlas-examples/teams","hooks_url":"https://api.github.com/repos/hashicorp/atlas-examples/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/atlas-examples/events","assignees_url":"https://api.github.com/repos/hashicorp/atlas-examples/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/atlas-examples/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/atlas-examples/tags","blobs_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/atlas-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/atlas-examples/languages","stargazers_url":"https://api.github.com/repos/hashicorp/atlas-examples/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/atlas-examples/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/atlas-examples/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/atlas-examples/subscription","commits_url":"https://api.github.com/repos/hashicorp/atlas-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/atlas-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/atlas-examples/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/atlas-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/atlas-examples/merges","archive_url":"https://api.github.com/repos/hashicorp/atlas-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/atlas-examples/downloads","issues_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/atlas-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/atlas-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/atlas-examples/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/atlas-examples/releases{/id}","created_at":"2014-12-12T18:19:27Z","updated_at":"2015-08-31T06:46:20Z","pushed_at":"2015-09-01T00:02:28Z","git_url":"git://github.com/hashicorp/atlas-examples.git","ssh_url":"git@github.com:hashicorp/atlas-examples.git","clone_url":"https://github.com/hashicorp/atlas-examples.git","svn_url":"https://github.com/hashicorp/atlas-examples","homepage":null,"size":17716,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":5,"forks":19,"open_issues":5,"watchers":38,"default_branch":"master"}},"base":{"label":"hashicorp:master","ref":"master","sha":"25dc94fe968e550e929b008e6f545c981d4405e2","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":27932443,"name":"atlas-examples","full_name":"hashicorp/atlas-examples","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/atlas-examples","description":"Public examples for using Atlas by HashiCorp","fork":false,"url":"https://api.github.com/repos/hashicorp/atlas-examples","forks_url":"https://api.github.com/repos/hashicorp/atlas-examples/forks","keys_url":"https://api.github.com/repos/hashicorp/atlas-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/atlas-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/atlas-examples/teams","hooks_url":"https://api.github.com/repos/hashicorp/atlas-examples/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/atlas-examples/events","assignees_url":"https://api.github.com/repos/hashicorp/atlas-examples/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/atlas-examples/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/atlas-examples/tags","blobs_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/atlas-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/atlas-examples/languages","stargazers_url":"https://api.github.com/repos/hashicorp/atlas-examples/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/atlas-examples/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/atlas-examples/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/atlas-examples/subscription","commits_url":"https://api.github.com/repos/hashicorp/atlas-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/atlas-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/atlas-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/atlas-examples/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/atlas-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/atlas-examples/merges","archive_url":"https://api.github.com/repos/hashicorp/atlas-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/atlas-examples/downloads","issues_url":"https://api.github.com/repos/hashicorp/atlas-examples/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/atlas-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/atlas-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/atlas-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/atlas-examples/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/atlas-examples/releases{/id}","created_at":"2014-12-12T18:19:27Z","updated_at":"2015-08-31T06:46:20Z","pushed_at":"2015-09-01T00:02:28Z","git_url":"git://github.com/hashicorp/atlas-examples.git","ssh_url":"git@github.com:hashicorp/atlas-examples.git","clone_url":"https://github.com/hashicorp/atlas-examples.git","svn_url":"https://github.com/hashicorp/atlas-examples","homepage":null,"size":17716,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":5,"forks":19,"open_issues":5,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56"},"html":{"href":"https://github.com/hashicorp/atlas-examples/pull/56"},"issue":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/issues/56"},"comments":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/atlas-examples/statuses/5f7b21c0e41c5e4155c891d454c530d38c9779d1"}}}}