{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/10301","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/10301/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/10301/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/10301/events","html_url":"https://github.com/hashicorp/terraform/pull/10301","id":191126850,"number":10301,"title":"provider/aws: data source for AWS Route Table","user":{"login":"mathieuherbert","id":2930750,"avatar_url":"https://avatars.githubusercontent.com/u/2930750?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieuherbert","html_url":"https://github.com/mathieuherbert","followers_url":"https://api.github.com/users/mathieuherbert/followers","following_url":"https://api.github.com/users/mathieuherbert/following{/other_user}","gists_url":"https://api.github.com/users/mathieuherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieuherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieuherbert/subscriptions","organizations_url":"https://api.github.com/users/mathieuherbert/orgs","repos_url":"https://api.github.com/users/mathieuherbert/repos","events_url":"https://api.github.com/users/mathieuherbert/events{/privacy}","received_events_url":"https://api.github.com/users/mathieuherbert/received_events","type":"User","site_admin":false},"labels":[{"id":85946959,"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9","default":true},{"id":379890766,"url":"https://api.github.com/repos/hashicorp/terraform/labels/new-data-source","name":"new-data-source","color":"d4c5f9","default":false},{"id":127939518,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-22T21:18:53Z","updated_at":"2016-11-28T16:24:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/10301","html_url":"https://github.com/hashicorp/terraform/pull/10301","diff_url":"https://github.com/hashicorp/terraform/pull/10301.diff","patch_url":"https://github.com/hashicorp/terraform/pull/10301.patch"},"body":"Hi,\r\n\r\nI added an AWS provider, aws_route_table.\r\nWe can retrieve, for example a route table from a subnet id and add a route with this route table\r\n```\r\nvariable \"subnet_id\" {}\r\n\r\ndata \"aws_route_table\" \"selected\" {\r\n  subnet_id = \"${var.subnet_id}\"\r\n}\r\n\r\nresource \"aws_route\" \"route\" {\r\n  route_table_id = \"${data.aws_route_table.selected.id}\"\r\n  destination_cidr_block = \"10.0.1.0/22\"\r\n  vpc_peering_connection_id = \"pcx-45ff3dc1\"\r\n}\r\n```\r\n\r\nTests:\r\n\r\n```\r\n/opt/gopath/src/github.com/hashicorp/terraform$ TF_ACC=true go test -trace /tmp/toto.txt -v github.com/hashicorp/terraform/builtin/providers/aws -run ^TestAccDataSourceAwsRouteTable$\r\n=== RUN   TestAccDataSourceAwsRouteTable\r\n--- PASS: TestAccDataSourceAwsRouteTable (46.92s)\r\nPASS\r\nok  \tgithub.com/hashicorp/terraform/builtin/providers/aws\t46.966s\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/263317259","html_url":"https://github.com/hashicorp/terraform/pull/10301#issuecomment-263317259","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/10301","id":263317259,"user":{"login":"kwilczynski","id":250723,"avatar_url":"https://avatars.githubusercontent.com/u/250723?v=3","gravatar_id":"","url":"https://api.github.com/users/kwilczynski","html_url":"https://github.com/kwilczynski","followers_url":"https://api.github.com/users/kwilczynski/followers","following_url":"https://api.github.com/users/kwilczynski/following{/other_user}","gists_url":"https://api.github.com/users/kwilczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/kwilczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwilczynski/subscriptions","organizations_url":"https://api.github.com/users/kwilczynski/orgs","repos_url":"https://api.github.com/users/kwilczynski/repos","events_url":"https://api.github.com/users/kwilczynski/events{/privacy}","received_events_url":"https://api.github.com/users/kwilczynski/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T16:24:18Z","updated_at":"2016-11-28T16:24:18Z","body":"@mathieuherbert hi there! Looks good! Two minor comments, and then I think ready to go."}}
{"actor":{"display_login":"kwilczynski"}}