{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2581","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2581/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2581/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2581/events","html_url":"https://github.com/hashicorp/terraform/issues/2581","id":92258145,"number":2581,"title":"\"provider template couldn't be found\"","user":{"login":"jc-asdf","id":7238349,"avatar_url":"https://avatars.githubusercontent.com/u/7238349?v=3","gravatar_id":"","url":"https://api.github.com/users/jc-asdf","html_url":"https://github.com/jc-asdf","followers_url":"https://api.github.com/users/jc-asdf/followers","following_url":"https://api.github.com/users/jc-asdf/following{/other_user}","gists_url":"https://api.github.com/users/jc-asdf/gists{/gist_id}","starred_url":"https://api.github.com/users/jc-asdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jc-asdf/subscriptions","organizations_url":"https://api.github.com/users/jc-asdf/orgs","repos_url":"https://api.github.com/users/jc-asdf/repos","events_url":"https://api.github.com/users/jc-asdf/events{/privacy}","received_events_url":"https://api.github.com/users/jc-asdf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-01T03:18:26Z","updated_at":"2015-07-04T00:46:14Z","closed_at":null,"body":"When moving to Terraform 0.6.0, terraform refresh now generates errors around my templates:\r\n\r\n    * module.staging_member_service.module.mysql_db_server.template_file.userdata (destroy): provider template couldn't be found\r\n\r\nMy overall terraform code is pretty crazy, so I'm working on creating a smaller reproduction case which I'll attach when I figure out how to reproduce."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/118446711","html_url":"https://github.com/hashicorp/terraform/issues/2581#issuecomment-118446711","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2581","id":118446711,"user":{"login":"jc-asdf","id":7238349,"avatar_url":"https://avatars.githubusercontent.com/u/7238349?v=3","gravatar_id":"","url":"https://api.github.com/users/jc-asdf","html_url":"https://github.com/jc-asdf","followers_url":"https://api.github.com/users/jc-asdf/followers","following_url":"https://api.github.com/users/jc-asdf/following{/other_user}","gists_url":"https://api.github.com/users/jc-asdf/gists{/gist_id}","starred_url":"https://api.github.com/users/jc-asdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jc-asdf/subscriptions","organizations_url":"https://api.github.com/users/jc-asdf/orgs","repos_url":"https://api.github.com/users/jc-asdf/repos","events_url":"https://api.github.com/users/jc-asdf/events{/privacy}","received_events_url":"https://api.github.com/users/jc-asdf/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T00:46:14Z","updated_at":"2015-07-04T00:46:14Z","body":"So the closest I can figure is that this is related to nested modules.  I'm only able to recreate this when I have a template inside a module, included from another module, included from the root.  Even then, it's frustratingly inconsistent."}}