{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4052","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4052/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4052/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4052/events","html_url":"https://github.com/hashicorp/terraform/issues/4052","id":118703173,"number":4052,"title":"0.6.7 illegal char escape","user":{"login":"br0ch0n","id":3664748,"avatar_url":"https://avatars.githubusercontent.com/u/3664748?v=3","gravatar_id":"","url":"https://api.github.com/users/br0ch0n","html_url":"https://github.com/br0ch0n","followers_url":"https://api.github.com/users/br0ch0n/followers","following_url":"https://api.github.com/users/br0ch0n/following{/other_user}","gists_url":"https://api.github.com/users/br0ch0n/gists{/gist_id}","starred_url":"https://api.github.com/users/br0ch0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br0ch0n/subscriptions","organizations_url":"https://api.github.com/users/br0ch0n/orgs","repos_url":"https://api.github.com/users/br0ch0n/repos","events_url":"https://api.github.com/users/br0ch0n/events{/privacy}","received_events_url":"https://api.github.com/users/br0ch0n/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":127939292,"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2015-11-24T21:09:09Z","updated_at":"2016-11-24T03:25:45Z","closed_at":"2015-11-24T22:21:01Z","body":"Just went from 0.6.6 to 0.6.7 and now on plan I get:\n\nError loading config: Error parsing foo.tf: At 199:34: illegal char escape\n\nThe line it's complaining about (which worked just fine before) is from an inline remote-exec provisioner:\n\n``` tf\n  provisioner \"remote-exec\" {\n    inline = [\n            \"sed -i s/^search.*/search\\ foo.com/ /etc/resolv.conf\",\n    ]\n  }\n```\n\nIt would seem that it doesn't like the escaped space anymore.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/262682085","html_url":"https://github.com/hashicorp/terraform/issues/4052#issuecomment-262682085","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/4052","id":262682085,"user":{"login":"bexie","id":6426717,"avatar_url":"https://avatars.githubusercontent.com/u/6426717?v=3","gravatar_id":"","url":"https://api.github.com/users/bexie","html_url":"https://github.com/bexie","followers_url":"https://api.github.com/users/bexie/followers","following_url":"https://api.github.com/users/bexie/following{/other_user}","gists_url":"https://api.github.com/users/bexie/gists{/gist_id}","starred_url":"https://api.github.com/users/bexie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bexie/subscriptions","organizations_url":"https://api.github.com/users/bexie/orgs","repos_url":"https://api.github.com/users/bexie/repos","events_url":"https://api.github.com/users/bexie/events{/privacy}","received_events_url":"https://api.github.com/users/bexie/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T03:25:45Z","updated_at":"2016-11-24T03:25:45Z","body":"Hi @phinze , I was trying to assign a string to the argument user_data when creating aws_launch_configuration, I did as you suggested to use \\\\ than \\ to escape characters, it throws error: \r\nError loading config: Error parsing .\\main.tf: At 217:188: expected: IDENT | STRING | ASSIGN | LBRACE got: NUMBER\r\nThis is the string I assigned to user_data as follow, could you please advise?\r\nuser_data                   = \"#!/bin/bash -v\\nID=\\\\$(curl http://169.254.169.254/latest/meta-data/instance-id)\\nhostname \\\\$ID\\nsed -i.bak \\\\'/127.0.0.1/d\\\\' /etc/hosts\\nsed -i.bak \\\\\"1 a 127.0.0.1 \\\\$ID.${var.project_name} \\\\$ID localhost\\\\\" /etc/hosts\""}}
{"actor":{"display_login":"bexie"}}