{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4385","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4385/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4385/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4385/events","html_url":"https://github.com/hashicorp/terraform/issues/4385","id":122979716,"number":4385,"title":"json regression?  Error loading config: resource needs exactly 2 names","user":{"login":"Phomias","id":4073894,"avatar_url":"https://avatars.githubusercontent.com/u/4073894?v=3","gravatar_id":"","url":"https://api.github.com/users/Phomias","html_url":"https://github.com/Phomias","followers_url":"https://api.github.com/users/Phomias/followers","following_url":"https://api.github.com/users/Phomias/following{/other_user}","gists_url":"https://api.github.com/users/Phomias/gists{/gist_id}","starred_url":"https://api.github.com/users/Phomias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phomias/subscriptions","organizations_url":"https://api.github.com/users/Phomias/orgs","repos_url":"https://api.github.com/users/Phomias/repos","events_url":"https://api.github.com/users/Phomias/events{/privacy}","received_events_url":"https://api.github.com/users/Phomias/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"}],"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":"2015-12-18T16:25:25Z","updated_at":"2016-08-11T10:17:52Z","closed_at":"2016-01-19T20:31:29Z","body":"Terraform 0.6.7 and 0.6.8 (which is the latest right now) are giving me a curious error on a null resource marked up in json:\r\n\r\n```\r\n$ cat config.tf.json \r\n```\r\n```\r\n{\r\n  \"resource\": {\r\n    \"null_resource\": {\r\n      \"my-resource\": {\r\n        \"provisioner\": {\r\n          \"local-exec\": {\r\n            \"command\": \"echo hi\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n```\r\n$ ~/Downloads/terraform_0.6.7_darwin_amd64/terraform apply\r\n```\r\n```\r\nError loading config: Error loading /Users/carl/temp/terraform_issue/config.tf.json: resource needs exactly 2 names\r\n```\r\n```\r\n$ ~/Downloads/terraform_0.6.6_darwin_amd64/terraform apply\r\n```\r\n```\r\nnull_resource.my-resource: Creating...\r\nnull_resource.my-resource: Provisioning with 'local-exec'...\r\nnull_resource.my-resource (local-exec): Executing: /bin/sh -c \"echo hi\"\r\nnull_resource.my-resource (local-exec): hi\r\nnull_resource.my-resource: Creation complete\r\n\r\nApply complete! Resources: 1 added, 0 changed, 0 destroyed.\r\n\r\nThe state of your infrastructure has been saved to the path\r\nbelow. This state is required to modify and destroy your\r\ninfrastructure, so keep it safe. To inspect the complete state\r\nuse the `terraform show` command.\r\n\r\nState path: terraform.tfstate\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/239123036","html_url":"https://github.com/hashicorp/terraform/issues/4385#issuecomment-239123036","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/4385","id":239123036,"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},"created_at":"2016-08-11T10:17:52Z","updated_at":"2016-08-11T10:17:52Z","body":"I ran into this issue with `null_resource` today as well, except with the use of the `triggers` argument. Could an error be added for this argument as well?"}}
{"actor":{"display_login":"mxxxc"}}