{"action":"created","comment":{"url":"https://api.github.com/repos/weaveworks/weave/pulls/comments/66236032","id":66236032,"diff_hunk":"@@ -0,0 +1,95 @@\n+---\n+title: Using IP Routing on an Amazon Web Services Virtual Private Cloud\n+menu_order: 110\n+---\n+\n+If you are running your container infrastructure entirely within\n+Amazon Web Services (AWS) Elastic Compute Cloud (EC2), then you can\n+choose AWS-VPC mode to connect your containers without any overlay, so\n+they can operate very close to the full speed of the underlying\n+network.\n+\n+In this mode, Weave Net still manages IP addresses and connects\n+containers to the network, but instead of wrapping up each packet and\n+sending it to its destination, Weave Net instructs the AWS network\n+router which ranges of container IP addresses live on which instance.\n+\n+![Weave Net AWS-VPC Mode](weave-net-awsvpc-1007x438.png)\n+\n+###Configuring your EC2 instances to use Weave AWS-VPC mode\n+\n+First, your AWS instances need to be given access to change the route\n+table.  Give them an IAM Role which has this access; if you have an\n+existing role then extend it or create a new one with a policy\n+allowing the necessary actions:\n+\n+```\n+{\n+    \"Version\": \"2012-10-17\",\n+    \"Statement\": [\n+        {\n+            \"Effect\": \"Allow\",\n+            \"Action\": [\n+                \"ec2:CreateRoute\",\n+                \"ec2:DeleteRoute\",\n+                \"ec2:ReplaceRoute\",\n+                \"ec2:DescribeRouteTables\",\n+                \"ec2:DescribeInstances\"\n+            ],\n+            \"Resource\": [\n+                \"*\"\n+            ]\n+        }\n+    ]\n+}\n+```\n+\n+Your Security Group must allow network traffic between instances: you\n+must open TCP port 6783 which Weave Net uses to manage the network,\n+and you must allow any ports which your own containers use. Remember:\n+there is no network overlay in this mode so IP packets with container\n+addresses will flow over the AWS network unmodified.\n+\n+Also, you must disable the \"Source/Destination check\" on each machine,\n+because Weave will be operating with IP addresses outside of the range\n+allocated by Amazon.\n+\n+###Using AWS-VPC mode\n+\n+Launch Weave Net, adding the `--awsvpc` flag:\n+\n+    $ weave launch --awsvpc [other hosts]\n+\n+You still need to supply the names or IP addresses of other hosts in\n+your cluster.","path":"site/using-weave/awsvpc.md","position":64,"original_position":64,"commit_id":"c41ca708f3aaa11f6e8d5050f4679d61d2e84b4a","original_commit_id":"c41ca708f3aaa11f6e8d5050f4679d61d2e84b4a","user":{"login":"bboreham","id":8125524,"avatar_url":"https://avatars.githubusercontent.com/u/8125524?v=3","gravatar_id":"","url":"https://api.github.com/users/bboreham","html_url":"https://github.com/bboreham","followers_url":"https://api.github.com/users/bboreham/followers","following_url":"https://api.github.com/users/bboreham/following{/other_user}","gists_url":"https://api.github.com/users/bboreham/gists{/gist_id}","starred_url":"https://api.github.com/users/bboreham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboreham/subscriptions","organizations_url":"https://api.github.com/users/bboreham/orgs","repos_url":"https://api.github.com/users/bboreham/repos","events_url":"https://api.github.com/users/bboreham/events{/privacy}","received_events_url":"https://api.github.com/users/bboreham/received_events","type":"User","site_admin":false},"body":"Nothing in `weave status` at present.\r\n\r\n`weave report` has `\"OverlayDiagnostics\": { \"awsvpc\": null }`\r\n\r\n    $ weave status connections\r\n    -> 172.31.23.45:6783     established awsvpc 26:a1:90:ca:f0:13(ip-172-31-23-45)\r\n","created_at":"2016-06-08T11:08:21Z","updated_at":"2016-06-08T11:08:21Z","html_url":"https://github.com/weaveworks/weave/pull/2338#discussion_r66236032","pull_request_url":"https://api.github.com/repos/weaveworks/weave/pulls/2338","_links":{"self":{"href":"https://api.github.com/repos/weaveworks/weave/pulls/comments/66236032"},"html":{"href":"https://github.com/weaveworks/weave/pull/2338#discussion_r66236032"},"pull_request":{"href":"https://api.github.com/repos/weaveworks/weave/pulls/2338"}}},"pull_request":{"url":"https://api.github.com/repos/weaveworks/weave/pulls/2338","id":72732496,"html_url":"https://github.com/weaveworks/weave/pull/2338","diff_url":"https://github.com/weaveworks/weave/pull/2338.diff","patch_url":"https://github.com/weaveworks/weave/pull/2338.patch","issue_url":"https://api.github.com/repos/weaveworks/weave/issues/2338","number":2338,"state":"open","locked":false,"title":"Initial awsvpc docs","user":{"login":"bboreham","id":8125524,"avatar_url":"https://avatars.githubusercontent.com/u/8125524?v=3","gravatar_id":"","url":"https://api.github.com/users/bboreham","html_url":"https://github.com/bboreham","followers_url":"https://api.github.com/users/bboreham/followers","following_url":"https://api.github.com/users/bboreham/following{/other_user}","gists_url":"https://api.github.com/users/bboreham/gists{/gist_id}","starred_url":"https://api.github.com/users/bboreham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboreham/subscriptions","organizations_url":"https://api.github.com/users/bboreham/orgs","repos_url":"https://api.github.com/users/bboreham/repos","events_url":"https://api.github.com/users/bboreham/events{/privacy}","received_events_url":"https://api.github.com/users/bboreham/received_events","type":"User","site_admin":false},"body":"Relating to #2341","created_at":"2016-06-06T15:49:46Z","updated_at":"2016-06-08T11:08:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca7d143c4a2f4790fdad437112481da9f69eaedc","assignee":null,"milestone":{"url":"https://api.github.com/repos/weaveworks/weave/milestones/33","html_url":"https://github.com/weaveworks/weave/milestones/1.6.0","labels_url":"https://api.github.com/repos/weaveworks/weave/milestones/33/labels","id":1702524,"number":33,"title":"1.6.0","description":"","creator":{"login":"rade","id":109109,"avatar_url":"https://avatars.githubusercontent.com/u/109109?v=3","gravatar_id":"","url":"https://api.github.com/users/rade","html_url":"https://github.com/rade","followers_url":"https://api.github.com/users/rade/followers","following_url":"https://api.github.com/users/rade/following{/other_user}","gists_url":"https://api.github.com/users/rade/gists{/gist_id}","starred_url":"https://api.github.com/users/rade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rade/subscriptions","organizations_url":"https://api.github.com/users/rade/orgs","repos_url":"https://api.github.com/users/rade/repos","events_url":"https://api.github.com/users/rade/events{/privacy}","received_events_url":"https://api.github.com/users/rade/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":31,"state":"open","created_at":"2016-04-12T21:57:16Z","updated_at":"2016-06-08T10:57:26Z","due_on":"2016-05-30T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/weaveworks/weave/pulls/2338/commits","review_comments_url":"https://api.github.com/repos/weaveworks/weave/pulls/2338/comments","review_comment_url":"https://api.github.com/repos/weaveworks/weave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weaveworks/weave/issues/2338/comments","statuses_url":"https://api.github.com/repos/weaveworks/weave/statuses/c41ca708f3aaa11f6e8d5050f4679d61d2e84b4a","head":{"label":"weaveworks:awsvpc-docs","ref":"awsvpc-docs","sha":"c41ca708f3aaa11f6e8d5050f4679d61d2e84b4a","user":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"repo":{"id":23059575,"name":"weave","full_name":"weaveworks/weave","owner":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weaveworks/weave","description":"Simple, resilient multi-host Docker networking and more.","fork":false,"url":"https://api.github.com/repos/weaveworks/weave","forks_url":"https://api.github.com/repos/weaveworks/weave/forks","keys_url":"https://api.github.com/repos/weaveworks/weave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weaveworks/weave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weaveworks/weave/teams","hooks_url":"https://api.github.com/repos/weaveworks/weave/hooks","issue_events_url":"https://api.github.com/repos/weaveworks/weave/issues/events{/number}","events_url":"https://api.github.com/repos/weaveworks/weave/events","assignees_url":"https://api.github.com/repos/weaveworks/weave/assignees{/user}","branches_url":"https://api.github.com/repos/weaveworks/weave/branches{/branch}","tags_url":"https://api.github.com/repos/weaveworks/weave/tags","blobs_url":"https://api.github.com/repos/weaveworks/weave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weaveworks/weave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weaveworks/weave/git/refs{/sha}","trees_url":"https://api.github.com/repos/weaveworks/weave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weaveworks/weave/statuses/{sha}","languages_url":"https://api.github.com/repos/weaveworks/weave/languages","stargazers_url":"https://api.github.com/repos/weaveworks/weave/stargazers","contributors_url":"https://api.github.com/repos/weaveworks/weave/contributors","subscribers_url":"https://api.github.com/repos/weaveworks/weave/subscribers","subscription_url":"https://api.github.com/repos/weaveworks/weave/subscription","commits_url":"https://api.github.com/repos/weaveworks/weave/commits{/sha}","git_commits_url":"https://api.github.com/repos/weaveworks/weave/git/commits{/sha}","comments_url":"https://api.github.com/repos/weaveworks/weave/comments{/number}","issue_comment_url":"https://api.github.com/repos/weaveworks/weave/issues/comments{/number}","contents_url":"https://api.github.com/repos/weaveworks/weave/contents/{+path}","compare_url":"https://api.github.com/repos/weaveworks/weave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weaveworks/weave/merges","archive_url":"https://api.github.com/repos/weaveworks/weave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weaveworks/weave/downloads","issues_url":"https://api.github.com/repos/weaveworks/weave/issues{/number}","pulls_url":"https://api.github.com/repos/weaveworks/weave/pulls{/number}","milestones_url":"https://api.github.com/repos/weaveworks/weave/milestones{/number}","notifications_url":"https://api.github.com/repos/weaveworks/weave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weaveworks/weave/labels{/name}","releases_url":"https://api.github.com/repos/weaveworks/weave/releases{/id}","deployments_url":"https://api.github.com/repos/weaveworks/weave/deployments","created_at":"2014-08-18T05:19:07Z","updated_at":"2016-06-07T17:50:03Z","pushed_at":"2016-06-08T10:57:26Z","git_url":"git://github.com/weaveworks/weave.git","ssh_url":"git@github.com:weaveworks/weave.git","clone_url":"https://github.com/weaveworks/weave.git","svn_url":"https://github.com/weaveworks/weave","homepage":"http://weave.works","size":13023,"stargazers_count":4242,"watchers_count":4242,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":274,"mirror_url":null,"open_issues_count":244,"forks":274,"open_issues":244,"watchers":4242,"default_branch":"master"}},"base":{"label":"weaveworks:master","ref":"master","sha":"7ffbeead8d1c776d473bdf257117cdf4ae01bf11","user":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"repo":{"id":23059575,"name":"weave","full_name":"weaveworks/weave","owner":{"login":"weaveworks","id":9976052,"avatar_url":"https://avatars.githubusercontent.com/u/9976052?v=3","gravatar_id":"","url":"https://api.github.com/users/weaveworks","html_url":"https://github.com/weaveworks","followers_url":"https://api.github.com/users/weaveworks/followers","following_url":"https://api.github.com/users/weaveworks/following{/other_user}","gists_url":"https://api.github.com/users/weaveworks/gists{/gist_id}","starred_url":"https://api.github.com/users/weaveworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaveworks/subscriptions","organizations_url":"https://api.github.com/users/weaveworks/orgs","repos_url":"https://api.github.com/users/weaveworks/repos","events_url":"https://api.github.com/users/weaveworks/events{/privacy}","received_events_url":"https://api.github.com/users/weaveworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weaveworks/weave","description":"Simple, resilient multi-host Docker networking and more.","fork":false,"url":"https://api.github.com/repos/weaveworks/weave","forks_url":"https://api.github.com/repos/weaveworks/weave/forks","keys_url":"https://api.github.com/repos/weaveworks/weave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weaveworks/weave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weaveworks/weave/teams","hooks_url":"https://api.github.com/repos/weaveworks/weave/hooks","issue_events_url":"https://api.github.com/repos/weaveworks/weave/issues/events{/number}","events_url":"https://api.github.com/repos/weaveworks/weave/events","assignees_url":"https://api.github.com/repos/weaveworks/weave/assignees{/user}","branches_url":"https://api.github.com/repos/weaveworks/weave/branches{/branch}","tags_url":"https://api.github.com/repos/weaveworks/weave/tags","blobs_url":"https://api.github.com/repos/weaveworks/weave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weaveworks/weave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weaveworks/weave/git/refs{/sha}","trees_url":"https://api.github.com/repos/weaveworks/weave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weaveworks/weave/statuses/{sha}","languages_url":"https://api.github.com/repos/weaveworks/weave/languages","stargazers_url":"https://api.github.com/repos/weaveworks/weave/stargazers","contributors_url":"https://api.github.com/repos/weaveworks/weave/contributors","subscribers_url":"https://api.github.com/repos/weaveworks/weave/subscribers","subscription_url":"https://api.github.com/repos/weaveworks/weave/subscription","commits_url":"https://api.github.com/repos/weaveworks/weave/commits{/sha}","git_commits_url":"https://api.github.com/repos/weaveworks/weave/git/commits{/sha}","comments_url":"https://api.github.com/repos/weaveworks/weave/comments{/number}","issue_comment_url":"https://api.github.com/repos/weaveworks/weave/issues/comments{/number}","contents_url":"https://api.github.com/repos/weaveworks/weave/contents/{+path}","compare_url":"https://api.github.com/repos/weaveworks/weave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weaveworks/weave/merges","archive_url":"https://api.github.com/repos/weaveworks/weave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weaveworks/weave/downloads","issues_url":"https://api.github.com/repos/weaveworks/weave/issues{/number}","pulls_url":"https://api.github.com/repos/weaveworks/weave/pulls{/number}","milestones_url":"https://api.github.com/repos/weaveworks/weave/milestones{/number}","notifications_url":"https://api.github.com/repos/weaveworks/weave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weaveworks/weave/labels{/name}","releases_url":"https://api.github.com/repos/weaveworks/weave/releases{/id}","deployments_url":"https://api.github.com/repos/weaveworks/weave/deployments","created_at":"2014-08-18T05:19:07Z","updated_at":"2016-06-07T17:50:03Z","pushed_at":"2016-06-08T10:57:26Z","git_url":"git://github.com/weaveworks/weave.git","ssh_url":"git@github.com:weaveworks/weave.git","clone_url":"https://github.com/weaveworks/weave.git","svn_url":"https://github.com/weaveworks/weave","homepage":"http://weave.works","size":13023,"stargazers_count":4242,"watchers_count":4242,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":274,"mirror_url":null,"open_issues_count":244,"forks":274,"open_issues":244,"watchers":4242,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weaveworks/weave/pulls/2338"},"html":{"href":"https://github.com/weaveworks/weave/pull/2338"},"issue":{"href":"https://api.github.com/repos/weaveworks/weave/issues/2338"},"comments":{"href":"https://api.github.com/repos/weaveworks/weave/issues/2338/comments"},"review_comments":{"href":"https://api.github.com/repos/weaveworks/weave/pulls/2338/comments"},"review_comment":{"href":"https://api.github.com/repos/weaveworks/weave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weaveworks/weave/pulls/2338/commits"},"statuses":{"href":"https://api.github.com/repos/weaveworks/weave/statuses/c41ca708f3aaa11f6e8d5050f4679d61d2e84b4a"}}}}
{"actor":{"display_login":"bboreham"}}