{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1439","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1439/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1439/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1439/events","html_url":"https://github.com/hashicorp/terraform/issues/1439","id":67305479,"number":1439,"title":"terraform get: can't use variable in module source parameter?","user":{"login":"amaczuga","id":10994840,"avatar_url":"https://avatars.githubusercontent.com/u/10994840?v=3","gravatar_id":"","url":"https://api.github.com/users/amaczuga","html_url":"https://github.com/amaczuga","followers_url":"https://api.github.com/users/amaczuga/followers","following_url":"https://api.github.com/users/amaczuga/following{/other_user}","gists_url":"https://api.github.com/users/amaczuga/gists{/gist_id}","starred_url":"https://api.github.com/users/amaczuga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaczuga/subscriptions","organizations_url":"https://api.github.com/users/amaczuga/orgs","repos_url":"https://api.github.com/users/amaczuga/repos","events_url":"https://api.github.com/users/amaczuga/events{/privacy}","received_events_url":"https://api.github.com/users/amaczuga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/thinking","name":"thinking","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"milestone":null,"comments":25,"created_at":"2015-04-09T08:15:28Z","updated_at":"2016-03-01T19:27:41Z","closed_at":null,"body":"I'm trying to avoid hard-coding module sources; the simplest approach would be:\r\n\r\n```\r\nvariable \"foo_module_source\" {\r\n  default = \"github.com/thisisme/terraform-foo-module\"\r\n}\r\n\r\nmodule \"foo\" {\r\n  source = \"${var.foo_module_source}\"\r\n}\r\n```\r\n\r\nThe result I get while attempting to run `terraform get -update` is\r\n\r\n```\r\nError loading Terraform: Error downloading modules: error downloading module 'file:///home/thisisme/terraform-env/${var.foo_module_source}': source path error: stat /home/thisisme/terraform-env/${var.foo_module_source}: no such file or directory\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/190864003","html_url":"https://github.com/hashicorp/terraform/issues/1439#issuecomment-190864003","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1439","id":190864003,"user":{"login":"johnrengelman","id":1012772,"avatar_url":"https://avatars.githubusercontent.com/u/1012772?v=3","gravatar_id":"","url":"https://api.github.com/users/johnrengelman","html_url":"https://github.com/johnrengelman","followers_url":"https://api.github.com/users/johnrengelman/followers","following_url":"https://api.github.com/users/johnrengelman/following{/other_user}","gists_url":"https://api.github.com/users/johnrengelman/gists{/gist_id}","starred_url":"https://api.github.com/users/johnrengelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnrengelman/subscriptions","organizations_url":"https://api.github.com/users/johnrengelman/orgs","repos_url":"https://api.github.com/users/johnrengelman/repos","events_url":"https://api.github.com/users/johnrengelman/events{/privacy}","received_events_url":"https://api.github.com/users/johnrengelman/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T19:27:41Z","updated_at":"2016-03-01T19:27:41Z","body":"Another user case is providing credentials for accessing a private repository over HTTPS. Each user could set their own username & password then."}}