{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/17691","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/17691/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/17691/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/17691/events","html_url":"https://github.com/hashicorp/terraform/issues/17691","id":308518223,"number":17691,"title":"Running an empty destroy with an interpolated output fails","user":{"login":"tomelliff","id":4348646,"avatar_url":"https://avatars3.githubusercontent.com/u/4348646?v=4","gravatar_id":"","url":"https://api.github.com/users/tomelliff","html_url":"https://github.com/tomelliff","followers_url":"https://api.github.com/users/tomelliff/followers","following_url":"https://api.github.com/users/tomelliff/following{/other_user}","gists_url":"https://api.github.com/users/tomelliff/gists{/gist_id}","starred_url":"https://api.github.com/users/tomelliff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomelliff/subscriptions","organizations_url":"https://api.github.com/users/tomelliff/orgs","repos_url":"https://api.github.com/users/tomelliff/repos","events_url":"https://api.github.com/users/tomelliff/events{/privacy}","received_events_url":"https://api.github.com/users/tomelliff/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":"jbardin","id":35067,"avatar_url":"https://avatars2.githubusercontent.com/u/35067?v=4","gravatar_id":"","url":"https://api.github.com/users/jbardin","html_url":"https://github.com/jbardin","followers_url":"https://api.github.com/users/jbardin/followers","following_url":"https://api.github.com/users/jbardin/following{/other_user}","gists_url":"https://api.github.com/users/jbardin/gists{/gist_id}","starred_url":"https://api.github.com/users/jbardin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbardin/subscriptions","organizations_url":"https://api.github.com/users/jbardin/orgs","repos_url":"https://api.github.com/users/jbardin/repos","events_url":"https://api.github.com/users/jbardin/events{/privacy}","received_events_url":"https://api.github.com/users/jbardin/received_events","type":"User","site_admin":false},"assignees":[{"login":"jbardin","id":35067,"avatar_url":"https://avatars2.githubusercontent.com/u/35067?v=4","gravatar_id":"","url":"https://api.github.com/users/jbardin","html_url":"https://github.com/jbardin","followers_url":"https://api.github.com/users/jbardin/followers","following_url":"https://api.github.com/users/jbardin/following{/other_user}","gists_url":"https://api.github.com/users/jbardin/gists{/gist_id}","starred_url":"https://api.github.com/users/jbardin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbardin/subscriptions","organizations_url":"https://api.github.com/users/jbardin/orgs","repos_url":"https://api.github.com/users/jbardin/repos","events_url":"https://api.github.com/users/jbardin/events{/privacy}","received_events_url":"https://api.github.com/users/jbardin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-03-26T10:36:00Z","updated_at":"2018-05-14T22:16:01Z","closed_at":"2018-04-04T19:20:13Z","author_association":"CONTRIBUTOR","body":"Running an empty destroy with an interpolated output fails without setting `TF_WARN_OUTPUT_ERRORS`:\r\n\r\n\r\n### Terraform Version\r\n```\r\nTerraform v0.11.4\r\n```\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"random_id\" \"foo\" {\r\n  byte_length = 6\r\n}\r\n\r\noutput \"foo\" {\r\n  value = \"${random_id.foo.b64}\"\r\n}\r\n```\r\n\r\n### Expected Behavior\r\nNothing to happen, it's an empty state file so a destroy should do nothing.\r\n\r\n### Actual Behavior\r\n```\r\n$ terraform destroy -auto-approve\r\n\r\nError: Error applying plan:\r\n\r\n1 error(s) occurred:\r\n\r\n* output.foo: variable \"foo\" is nil, but no error was reported\r\n\r\nTerraform does not automatically rollback in the face of errors.\r\nInstead, your Terraform state file has been partially updated with\r\nany resources that successfully completed. Please address the error\r\nabove and apply again to incrementally change your infrastructure.\r\n\r\n\r\n$ export TF_WARN_OUTPUT_ERRORS=1\r\n$ terraform destroy -auto-approve\r\n\r\nDestroy complete! Resources: 0 destroyed.\r\n```\r\n\r\n### Steps to Reproduce\r\n1. `terraform init`\r\n2. `terraform destroy`\r\n\r\n### Additional Context\r\nTerraform-Kitchen runs a destroy at the start of a test run to make sure that it's running from a clean state (use `verify` just to rerun the tests alone) so this gets triggered then.\r\n\r\n### References\r\nLooked around the issue tracker because I thought this would be covered elsewhere but doesn't appear to be. https://github.com/hashicorp/terraform/issues/17655 and https://github.com/hashicorp/terraform/issues/17425 seem to be different issues and my slightly related, previously raised issue at https://github.com/hashicorp/terraform/issues/17641 is also different to this exact issue.\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/388980439","html_url":"https://github.com/hashicorp/terraform/issues/17691#issuecomment-388980439","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/17691","id":388980439,"user":{"login":"alwaysastudent","id":1873570,"avatar_url":"https://avatars2.githubusercontent.com/u/1873570?v=4","gravatar_id":"","url":"https://api.github.com/users/alwaysastudent","html_url":"https://github.com/alwaysastudent","followers_url":"https://api.github.com/users/alwaysastudent/followers","following_url":"https://api.github.com/users/alwaysastudent/following{/other_user}","gists_url":"https://api.github.com/users/alwaysastudent/gists{/gist_id}","starred_url":"https://api.github.com/users/alwaysastudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alwaysastudent/subscriptions","organizations_url":"https://api.github.com/users/alwaysastudent/orgs","repos_url":"https://api.github.com/users/alwaysastudent/repos","events_url":"https://api.github.com/users/alwaysastudent/events{/privacy}","received_events_url":"https://api.github.com/users/alwaysastudent/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T22:16:01Z","updated_at":"2018-05-14T22:16:01Z","author_association":"NONE","body":"facing the same issue on `Terraform v0.11.7`"}}
{"actor":{"display_login":"alwaysastudent"}}