{"action":"created","comment":{"url":"https://api.github.com/repos/azavea/raster-foundry/pulls/comments/41412667","id":41412667,"diff_hunk":"@@ -129,6 +134,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|\n     end\n \n     app.vm.provision \"ansible\" do |ansible|\n+      ansible.extra_vars = extra_vars","path":"Vagrantfile","position":16,"original_position":16,"commit_id":"b7113316e3c7c14ba8d9046420061d76f7143665","original_commit_id":"b7113316e3c7c14ba8d9046420061d76f7143665","user":{"login":"lewfish","id":1896461,"avatar_url":"https://avatars.githubusercontent.com/u/1896461?v=3","gravatar_id":"","url":"https://api.github.com/users/lewfish","html_url":"https://github.com/lewfish","followers_url":"https://api.github.com/users/lewfish/followers","following_url":"https://api.github.com/users/lewfish/following{/other_user}","gists_url":"https://api.github.com/users/lewfish/gists{/gist_id}","starred_url":"https://api.github.com/users/lewfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewfish/subscriptions","organizations_url":"https://api.github.com/users/lewfish/orgs","repos_url":"https://api.github.com/users/lewfish/repos","events_url":"https://api.github.com/users/lewfish/events{/privacy}","received_events_url":"https://api.github.com/users/lewfish/received_events","type":"User","site_admin":false},"body":"Will that work here? I thought `lookup` gets environment variables on the guest machine, not the host machine.","created_at":"2015-10-07T16:29:45Z","updated_at":"2015-10-07T16:29:45Z","html_url":"https://github.com/azavea/raster-foundry/pull/142#discussion_r41412667","pull_request_url":"https://api.github.com/repos/azavea/raster-foundry/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/azavea/raster-foundry/pulls/comments/41412667"},"html":{"href":"https://github.com/azavea/raster-foundry/pull/142#discussion_r41412667"},"pull_request":{"href":"https://api.github.com/repos/azavea/raster-foundry/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/azavea/raster-foundry/pulls/142","id":46945037,"html_url":"https://github.com/azavea/raster-foundry/pull/142","diff_url":"https://github.com/azavea/raster-foundry/pull/142.diff","patch_url":"https://github.com/azavea/raster-foundry/pull/142.patch","issue_url":"https://api.github.com/repos/azavea/raster-foundry/issues/142","number":142,"state":"open","locked":false,"title":"WIP: Script creation of S3 and SQS resources","user":{"login":"lewfish","id":1896461,"avatar_url":"https://avatars.githubusercontent.com/u/1896461?v=3","gravatar_id":"","url":"https://api.github.com/users/lewfish","html_url":"https://github.com/lewfish","followers_url":"https://api.github.com/users/lewfish/followers","following_url":"https://api.github.com/users/lewfish/following{/other_user}","gists_url":"https://api.github.com/users/lewfish/gists{/gist_id}","starred_url":"https://api.github.com/users/lewfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewfish/subscriptions","organizations_url":"https://api.github.com/users/lewfish/orgs","repos_url":"https://api.github.com/users/lewfish/repos","events_url":"https://api.github.com/users/lewfish/events{/privacy}","received_events_url":"https://api.github.com/users/lewfish/received_events","type":"User","site_admin":false},"body":"Provisioning the app now creates RF_SQS, RF_SQS_DEAD_LETTER, and RF_S3_BUCKET in /etc/rf.d/env based on the user and hostname. You will need to `export HOSTNAME` in OS X, so that the shell variable will become an environment variable and the Vagrantfile can read it. \r\n\r\nAfter running the script `scripts/create-aws-resources.py` on my host machine, the AWS resources were setup appropriately (an SQS queue, an SQS dead letter queue, and an S3 bucket). You can add a files to the S3 bucket `raster-foundry-lewfish-monoshone`, and a message will be sent to the corresponding SQS queue. BTW, in case you missed it, I'm using boto3 to setup bucket notifications, which is missing in boto.\r\n\r\nI still need to get the script to run before the app server start. But in the meantime, I wanted to get some feedback.\r\n\r\nFYI, I added an S3 group policy on AWS console so the script can create S3 buckets.","created_at":"2015-10-06T19:14:35Z","updated_at":"2015-10-07T16:29:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69233ad99f6f96e01073f02b5fc9822496938a89","assignee":{"login":"lliss","id":903219,"avatar_url":"https://avatars.githubusercontent.com/u/903219?v=3","gravatar_id":"","url":"https://api.github.com/users/lliss","html_url":"https://github.com/lliss","followers_url":"https://api.github.com/users/lliss/followers","following_url":"https://api.github.com/users/lliss/following{/other_user}","gists_url":"https://api.github.com/users/lliss/gists{/gist_id}","starred_url":"https://api.github.com/users/lliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lliss/subscriptions","organizations_url":"https://api.github.com/users/lliss/orgs","repos_url":"https://api.github.com/users/lliss/repos","events_url":"https://api.github.com/users/lliss/events{/privacy}","received_events_url":"https://api.github.com/users/lliss/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/azavea/raster-foundry/pulls/142/commits","review_comments_url":"https://api.github.com/repos/azavea/raster-foundry/pulls/142/comments","review_comment_url":"https://api.github.com/repos/azavea/raster-foundry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azavea/raster-foundry/issues/142/comments","statuses_url":"https://api.github.com/repos/azavea/raster-foundry/statuses/b7113316e3c7c14ba8d9046420061d76f7143665","head":{"label":"lewfish:feature/setup-aws","ref":"feature/setup-aws","sha":"b7113316e3c7c14ba8d9046420061d76f7143665","user":{"login":"lewfish","id":1896461,"avatar_url":"https://avatars.githubusercontent.com/u/1896461?v=3","gravatar_id":"","url":"https://api.github.com/users/lewfish","html_url":"https://github.com/lewfish","followers_url":"https://api.github.com/users/lewfish/followers","following_url":"https://api.github.com/users/lewfish/following{/other_user}","gists_url":"https://api.github.com/users/lewfish/gists{/gist_id}","starred_url":"https://api.github.com/users/lewfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewfish/subscriptions","organizations_url":"https://api.github.com/users/lewfish/orgs","repos_url":"https://api.github.com/users/lewfish/repos","events_url":"https://api.github.com/users/lewfish/events{/privacy}","received_events_url":"https://api.github.com/users/lewfish/received_events","type":"User","site_admin":false},"repo":{"id":40567584,"name":"raster-foundry","full_name":"lewfish/raster-foundry","owner":{"login":"lewfish","id":1896461,"avatar_url":"https://avatars.githubusercontent.com/u/1896461?v=3","gravatar_id":"","url":"https://api.github.com/users/lewfish","html_url":"https://github.com/lewfish","followers_url":"https://api.github.com/users/lewfish/followers","following_url":"https://api.github.com/users/lewfish/following{/other_user}","gists_url":"https://api.github.com/users/lewfish/gists{/gist_id}","starred_url":"https://api.github.com/users/lewfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewfish/subscriptions","organizations_url":"https://api.github.com/users/lewfish/orgs","repos_url":"https://api.github.com/users/lewfish/repos","events_url":"https://api.github.com/users/lewfish/events{/privacy}","received_events_url":"https://api.github.com/users/lewfish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lewfish/raster-foundry","description":"Raster Foundry.","fork":true,"url":"https://api.github.com/repos/lewfish/raster-foundry","forks_url":"https://api.github.com/repos/lewfish/raster-foundry/forks","keys_url":"https://api.github.com/repos/lewfish/raster-foundry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lewfish/raster-foundry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lewfish/raster-foundry/teams","hooks_url":"https://api.github.com/repos/lewfish/raster-foundry/hooks","issue_events_url":"https://api.github.com/repos/lewfish/raster-foundry/issues/events{/number}","events_url":"https://api.github.com/repos/lewfish/raster-foundry/events","assignees_url":"https://api.github.com/repos/lewfish/raster-foundry/assignees{/user}","branches_url":"https://api.github.com/repos/lewfish/raster-foundry/branches{/branch}","tags_url":"https://api.github.com/repos/lewfish/raster-foundry/tags","blobs_url":"https://api.github.com/repos/lewfish/raster-foundry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lewfish/raster-foundry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lewfish/raster-foundry/git/refs{/sha}","trees_url":"https://api.github.com/repos/lewfish/raster-foundry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lewfish/raster-foundry/statuses/{sha}","languages_url":"https://api.github.com/repos/lewfish/raster-foundry/languages","stargazers_url":"https://api.github.com/repos/lewfish/raster-foundry/stargazers","contributors_url":"https://api.github.com/repos/lewfish/raster-foundry/contributors","subscribers_url":"https://api.github.com/repos/lewfish/raster-foundry/subscribers","subscription_url":"https://api.github.com/repos/lewfish/raster-foundry/subscription","commits_url":"https://api.github.com/repos/lewfish/raster-foundry/commits{/sha}","git_commits_url":"https://api.github.com/repos/lewfish/raster-foundry/git/commits{/sha}","comments_url":"https://api.github.com/repos/lewfish/raster-foundry/comments{/number}","issue_comment_url":"https://api.github.com/repos/lewfish/raster-foundry/issues/comments{/number}","contents_url":"https://api.github.com/repos/lewfish/raster-foundry/contents/{+path}","compare_url":"https://api.github.com/repos/lewfish/raster-foundry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lewfish/raster-foundry/merges","archive_url":"https://api.github.com/repos/lewfish/raster-foundry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lewfish/raster-foundry/downloads","issues_url":"https://api.github.com/repos/lewfish/raster-foundry/issues{/number}","pulls_url":"https://api.github.com/repos/lewfish/raster-foundry/pulls{/number}","milestones_url":"https://api.github.com/repos/lewfish/raster-foundry/milestones{/number}","notifications_url":"https://api.github.com/repos/lewfish/raster-foundry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lewfish/raster-foundry/labels{/name}","releases_url":"https://api.github.com/repos/lewfish/raster-foundry/releases{/id}","created_at":"2015-08-11T22:08:56Z","updated_at":"2015-08-11T22:08:57Z","pushed_at":"2015-10-07T16:00:21Z","git_url":"git://github.com/lewfish/raster-foundry.git","ssh_url":"git@github.com:lewfish/raster-foundry.git","clone_url":"https://github.com/lewfish/raster-foundry.git","svn_url":"https://github.com/lewfish/raster-foundry","homepage":null,"size":12688,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"azavea:develop","ref":"develop","sha":"b393c9f86073df4a4a5636be817023eb1be76bf9","user":{"login":"azavea","id":595231,"avatar_url":"https://avatars.githubusercontent.com/u/595231?v=3","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"repo":{"id":36464140,"name":"raster-foundry","full_name":"azavea/raster-foundry","owner":{"login":"azavea","id":595231,"avatar_url":"https://avatars.githubusercontent.com/u/595231?v=3","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azavea/raster-foundry","description":"Raster Foundry.","fork":false,"url":"https://api.github.com/repos/azavea/raster-foundry","forks_url":"https://api.github.com/repos/azavea/raster-foundry/forks","keys_url":"https://api.github.com/repos/azavea/raster-foundry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azavea/raster-foundry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azavea/raster-foundry/teams","hooks_url":"https://api.github.com/repos/azavea/raster-foundry/hooks","issue_events_url":"https://api.github.com/repos/azavea/raster-foundry/issues/events{/number}","events_url":"https://api.github.com/repos/azavea/raster-foundry/events","assignees_url":"https://api.github.com/repos/azavea/raster-foundry/assignees{/user}","branches_url":"https://api.github.com/repos/azavea/raster-foundry/branches{/branch}","tags_url":"https://api.github.com/repos/azavea/raster-foundry/tags","blobs_url":"https://api.github.com/repos/azavea/raster-foundry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azavea/raster-foundry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azavea/raster-foundry/git/refs{/sha}","trees_url":"https://api.github.com/repos/azavea/raster-foundry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azavea/raster-foundry/statuses/{sha}","languages_url":"https://api.github.com/repos/azavea/raster-foundry/languages","stargazers_url":"https://api.github.com/repos/azavea/raster-foundry/stargazers","contributors_url":"https://api.github.com/repos/azavea/raster-foundry/contributors","subscribers_url":"https://api.github.com/repos/azavea/raster-foundry/subscribers","subscription_url":"https://api.github.com/repos/azavea/raster-foundry/subscription","commits_url":"https://api.github.com/repos/azavea/raster-foundry/commits{/sha}","git_commits_url":"https://api.github.com/repos/azavea/raster-foundry/git/commits{/sha}","comments_url":"https://api.github.com/repos/azavea/raster-foundry/comments{/number}","issue_comment_url":"https://api.github.com/repos/azavea/raster-foundry/issues/comments{/number}","contents_url":"https://api.github.com/repos/azavea/raster-foundry/contents/{+path}","compare_url":"https://api.github.com/repos/azavea/raster-foundry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azavea/raster-foundry/merges","archive_url":"https://api.github.com/repos/azavea/raster-foundry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azavea/raster-foundry/downloads","issues_url":"https://api.github.com/repos/azavea/raster-foundry/issues{/number}","pulls_url":"https://api.github.com/repos/azavea/raster-foundry/pulls{/number}","milestones_url":"https://api.github.com/repos/azavea/raster-foundry/milestones{/number}","notifications_url":"https://api.github.com/repos/azavea/raster-foundry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azavea/raster-foundry/labels{/name}","releases_url":"https://api.github.com/repos/azavea/raster-foundry/releases{/id}","created_at":"2015-05-28T20:25:45Z","updated_at":"2015-09-03T18:17:55Z","pushed_at":"2015-10-06T22:07:15Z","git_url":"git://github.com/azavea/raster-foundry.git","ssh_url":"git@github.com:azavea/raster-foundry.git","clone_url":"https://github.com/azavea/raster-foundry.git","svn_url":"https://github.com/azavea/raster-foundry","homepage":null,"size":13302,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":33,"forks":7,"open_issues":33,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/azavea/raster-foundry/pulls/142"},"html":{"href":"https://github.com/azavea/raster-foundry/pull/142"},"issue":{"href":"https://api.github.com/repos/azavea/raster-foundry/issues/142"},"comments":{"href":"https://api.github.com/repos/azavea/raster-foundry/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/azavea/raster-foundry/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/azavea/raster-foundry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azavea/raster-foundry/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/azavea/raster-foundry/statuses/b7113316e3c7c14ba8d9046420061d76f7143665"}}}}