{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/7160","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/7160/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/7160/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/7160/events","html_url":"https://github.com/hashicorp/terraform/issues/7160","id":160178704,"number":7160,"title":"Using lists in template_file doesn't work","user":{"login":"jtopper","id":739117,"avatar_url":"https://avatars.githubusercontent.com/u/739117?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopper","html_url":"https://github.com/jtopper","followers_url":"https://api.github.com/users/jtopper/followers","following_url":"https://api.github.com/users/jtopper/following{/other_user}","gists_url":"https://api.github.com/users/jtopper/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopper/subscriptions","organizations_url":"https://api.github.com/users/jtopper/orgs","repos_url":"https://api.github.com/users/jtopper/repos","events_url":"https://api.github.com/users/jtopper/events{/privacy}","received_events_url":"https://api.github.com/users/jtopper/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/core","name":"core","color":"cccccc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/release-0.7","name":"release-0.7","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"jen20","id":548524,"avatar_url":"https://avatars.githubusercontent.com/u/548524?v=3","gravatar_id":"","url":"https://api.github.com/users/jen20","html_url":"https://github.com/jen20","followers_url":"https://api.github.com/users/jen20/followers","following_url":"https://api.github.com/users/jen20/following{/other_user}","gists_url":"https://api.github.com/users/jen20/gists{/gist_id}","starred_url":"https://api.github.com/users/jen20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jen20/subscriptions","organizations_url":"https://api.github.com/users/jen20/orgs","repos_url":"https://api.github.com/users/jen20/repos","events_url":"https://api.github.com/users/jen20/events{/privacy}","received_events_url":"https://api.github.com/users/jen20/received_events","type":"User","site_admin":false},"assignees":[{"login":"jen20","id":548524,"avatar_url":"https://avatars.githubusercontent.com/u/548524?v=3","gravatar_id":"","url":"https://api.github.com/users/jen20","html_url":"https://github.com/jen20","followers_url":"https://api.github.com/users/jen20/followers","following_url":"https://api.github.com/users/jen20/following{/other_user}","gists_url":"https://api.github.com/users/jen20/gists{/gist_id}","starred_url":"https://api.github.com/users/jen20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jen20/subscriptions","organizations_url":"https://api.github.com/users/jen20/orgs","repos_url":"https://api.github.com/users/jen20/repos","events_url":"https://api.github.com/users/jen20/events{/privacy}","received_events_url":"https://api.github.com/users/jen20/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-06-14T13:16:57Z","updated_at":"2016-06-27T20:11:30Z","closed_at":null,"body":"The new support for structured variables appears not to be usable in `template_file` resources.\r\n\r\n### Terraform Version\r\nCurrent HEAD:\r\n`Terraform v0.7.0-dev (8f216563aa4a7c000056ea9ae98dfc526b595f5c)`\r\n\r\n### Affected Resource(s)\r\n\r\n* template_file\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"template_file\" \"repo_bucket_iam_policy\" {\r\n    template = \"${join(\",\",test)}\"\r\n    vars = {\r\n        test = [ \"one\", \"two\" ]\r\n    }\r\n}\r\n```\r\n\r\n### Debug Output\r\nProbably unnecessary, but ask if you need it.\r\n\r\n### Panic Output\r\nNone\r\n\r\n### Expected Behavior\r\nPlan should have completed cleanly.\r\n\r\n\r\n### Actual Behavior\r\n```\r\nRefreshing Terraform state in-memory prior to plan...\r\nThe refreshed state will be used to calculate this plan, but\r\nwill not be persisted to local or remote state storage.\r\n\r\n\r\nError running plan: 1 error(s) occurred:\r\n\r\n* vars: 1 error(s) decoding:\r\n\r\n* '[test]' expected type 'string', got unconvertible type '[]interface {}'\r\n\r\n```\r\n\r\n### Steps to Reproduce\r\n`terraform plan`\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/228860804","html_url":"https://github.com/hashicorp/terraform/issues/7160#issuecomment-228860804","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/7160","id":228860804,"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":"2016-06-27T20:11:30Z","updated_at":"2016-06-27T20:11:30Z","body":"Calling this a core bug, since it's not a template specific thing. "}}
{"actor":{"display_login":"phinze"}}