{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/8110","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/8110/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/8110/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/8110/events","html_url":"https://github.com/hashicorp/terraform/issues/8110","id":170448576,"number":8110,"title":"Panic on unescaped interpolation quotes in JSON","user":{"login":"mxxxc","id":14248883,"avatar_url":"https://avatars.githubusercontent.com/u/14248883?v=3","gravatar_id":"","url":"https://api.github.com/users/mxxxc","html_url":"https://github.com/mxxxc","followers_url":"https://api.github.com/users/mxxxc/followers","following_url":"https://api.github.com/users/mxxxc/following{/other_user}","gists_url":"https://api.github.com/users/mxxxc/gists{/gist_id}","starred_url":"https://api.github.com/users/mxxxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxxxc/subscriptions","organizations_url":"https://api.github.com/users/mxxxc/orgs","repos_url":"https://api.github.com/users/mxxxc/repos","events_url":"https://api.github.com/users/mxxxc/events{/privacy}","received_events_url":"https://api.github.com/users/mxxxc/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":{"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},"assignees":[{"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":6,"created_at":"2016-08-10T15:37:06Z","updated_at":"2016-11-03T05:52:00Z","closed_at":"2016-11-03T05:52:00Z","body":"### Terraform Version\n\n```\n~ # ./terraform -v\nTerraform v0.7.0\n```\n\nAlso reproduced on 0.6.16.\n### Affected Resource(s)\n\nThe core interpolation code.\n### Terraform Configuration Files\n\n``` json\n{\n  \"variable\": {\n    \"poc\": {\n      \"default\": \"${join(\" \", list(element(split(\"-\", \"europe-west\"), 1), element(split(\"-\", \"europe-west\", 0))))}\"\n    }\n  }\n}\n```\n\nReduced to:\n\n``` json\n{\n  \"variable\": {\n    \"poc\": {\n      \"default\": \"${replace(\"europe-west\", \"-\", \" \")}\"\n    }\n  }\n}\n```\n### Debug + Panic Output\n\nhttps://gist.github.com/mxxxc/de33ecb9144fbfa55d6e9d7bd89a8675\n### Expected Behavior\n\nAn error message indicating input variables can't contain interpolations.\n### Actual Behavior\n\nTerraform `panic()`s. It works when escaping the quotations, but this not stated anywhere in Terraform's interpolation documentation.\n### Steps to Reproduce\n1. Copy the minimal example to a plan file in your current directory.\n2. Run `terraform apply`.\n### Important Factoids\n\nCrash reproduced with the repository version on Alpine Linux (0.6.16) and a freshly-downloaded 0.7.0 from the main site.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/258068909","html_url":"https://github.com/hashicorp/terraform/issues/8110#issuecomment-258068909","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/8110","id":258068909,"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-03T05:52:00Z","updated_at":"2016-11-03T05:52:00Z","body":"Referenced PR is merged but this didn't auto-close. Closing!"}}
{"actor":{"display_login":"mitchellh"}}