{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/8448","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/8448/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/8448/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/8448/events","html_url":"https://github.com/hashicorp/terraform/issues/8448","id":172952668,"number":8448,"title":"0.7.1 regression: template_file: unknown variable accessed: ulimit","user":{"login":"jasonf20","id":1601106,"avatar_url":"https://avatars.githubusercontent.com/u/1601106?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonf20","html_url":"https://github.com/jasonf20","followers_url":"https://api.github.com/users/jasonf20/followers","following_url":"https://api.github.com/users/jasonf20/following{/other_user}","gists_url":"https://api.github.com/users/jasonf20/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonf20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonf20/subscriptions","organizations_url":"https://api.github.com/users/jasonf20/orgs","repos_url":"https://api.github.com/users/jasonf20/repos","events_url":"https://api.github.com/users/jasonf20/events{/privacy}","received_events_url":"https://api.github.com/users/jasonf20/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":210040828,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/template","name":"provider/template","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-24T13:32:55Z","updated_at":"2016-11-22T18:25:12Z","closed_at":"2016-11-22T18:25:12Z","body":"Today I tried to upgrade from the latest 0.6 release to 0.7.1 and there seems to be a bug I can't get around.\n\nI am using a `template_file` resource (now change to `data` instead of `resource`) in this file I have the following line: \n\n```\n  - echo \"* soft nofile ${ulimit}\" >> /etc/security/limits.conf\n```\n\nAnd of-course I pass the argument to the template file:\n\n```\nvars {\n      ulimit = \"40000\"\n    }\n```\n\nWhen I run an apply I get the following error:\n\n```\n data.template_file.cloud-init: failed to render : 98:28: unknown variable accessed: ulimit\n```\n\nThis all works perfectly fine in 0.6 but not in 0.7.1\n\nHere is a link to my debug output: https://gist.github.com/jasonf20/d836763cec4e194458534e7f6c6d1148\n\nEDIT: See my update below the issue is resolved for me but I have no idea why. Feel free to close this issue or use it to chat about the cause of this error message.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/262323041","html_url":"https://github.com/hashicorp/terraform/issues/8448#issuecomment-262323041","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/8448","id":262323041,"user":{"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},"created_at":"2016-11-22T18:25:12Z","updated_at":"2016-11-22T18:25:12Z","body":"This is fixed in 0.8!"}}
{"actor":{"display_login":"mitchellh"}}