{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1879","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1879/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1879/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1879/events","html_url":"https://github.com/hashicorp/terraform/issues/1879","id":74508787,"number":1879,"title":"Consul Provider does not seem to query consul","user":{"login":"packplusplus","id":1477148,"avatar_url":"https://avatars.githubusercontent.com/u/1477148?v=3","gravatar_id":"","url":"https://api.github.com/users/packplusplus","html_url":"https://github.com/packplusplus","followers_url":"https://api.github.com/users/packplusplus/followers","following_url":"https://api.github.com/users/packplusplus/following{/other_user}","gists_url":"https://api.github.com/users/packplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/packplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packplusplus/subscriptions","organizations_url":"https://api.github.com/users/packplusplus/orgs","repos_url":"https://api.github.com/users/packplusplus/repos","events_url":"https://api.github.com/users/packplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/packplusplus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/consul","name":"provider/consul","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-05-08T21:56:30Z","updated_at":"2015-11-17T18:02:12Z","closed_at":"2015-11-17T18:02:12Z","body":"I've tried this with 0.5.0. Working on testing 0.4.2 (doesn't support AWS Env variables)\r\n\r\nIt doesn't seem to make a call to consul. I left `tcpdump -i lo port 8500` running in another window, and no packets show up on a plan or an apply. They do show up on the curls. \r\n\r\nHere's my .tf\r\n<pre><code>provider \"consul\" { \r\n  address = \"127.0.0.1:8500\"\r\n  datacenter = \"us-east-aws\"\r\n  scheme = \"http\"\r\n} \r\n\r\nresource \"consul_keys\" \"app\" {\r\n    key {\r\n\tname = \"vpc_id\"\r\n\tpath = \"terraform_sg/vpc_id\"\r\n    }\r\n    key {\r\n\tname = \"region\"\r\n\tpath = \"terraform_sg/aws_region\"\r\n    }\r\n}\r\n\r\nprovider \"aws\" {\r\n  region = \"${consul_keys.app.var.region}\"\r\n}\r\n\r\nresource \"aws_security_group\" \"consul-test\" {\r\n\tname = \"consul-test\"\r\n\tdescription = \"consul-test\"\r\n\tvpc_id = \"${consul_keys.app.var.vpc_id}\"\r\n\r\n\tingress {\r\n  \t\tfrom_port = 22 \r\n  \t\tto_port = 22\r\n  \t\tprotocol = \"tcp\"\r\n  \t\tcidr_blocks = [\"0.0.0.0/0\"]\r\n\t}\r\n}</code></pre>\r\n\r\nOutput of plan:\r\n<pre><code> terraform plan ./\r\nThere are warnings and/or errors related to your configuration. Please\r\nfix these before continuing.\r\n\r\nErrors:\r\n\r\n  * 1 error(s) occurred:\r\n\r\n* 1 error(s) occurred:\r\n\r\n* Not a valid region: ${consul_keys.app.var.region}</code></pre>\r\n\r\n\r\nOutput of apply:\r\n<pre><code>terraform apply ./\r\nThere are warnings and/or errors related to your configuration. Please\r\nfix these before continuing.\r\n\r\nErrors:\r\n\r\n  * 1 error(s) occurred:\r\n\r\n* 1 error(s) occurred:\r\n\r\n* Not a valid region: \r\n</code></pre>\r\n\r\nand some KVs \r\n<pre><code>$ curl -s localhost:8500/v1/kv/terraform_sg/aws_region | jq -r '.[] | .Value' | base64 --decode; echo\r\nus-east-1\r\n\r\n$ curl -s localhost:8500/v1/kv/terraform_sg/vpc_id | jq -r '.[] | .Value' | base64 --decode; echo\r\nvpc-DONTSTEALMYVPCBRO\r\n\r\n$ consul --version\r\nConsul v0.5.0\r\nConsul Protocol: 2 (Understands back to: 1)\r\n</code></pre>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/157454307","html_url":"https://github.com/hashicorp/terraform/issues/1879#issuecomment-157454307","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1879","id":157454307,"user":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T18:02:12Z","updated_at":"2015-11-17T18:02:12Z","body":"Going to close this since the original issue was solved. Ideas on improved messaging are still welcome!"}}