{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2361","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2361/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2361/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2361/events","html_url":"https://github.com/hashicorp/terraform/issues/2361","id":88575560,"node_id":"MDU6SXNzdWU4ODU3NTU2MA==","number":2361,"title":"Destroy should accept execution plan file.","user":{"login":"tamsky","id":96978,"node_id":"MDQ6VXNlcjk2OTc4","avatar_url":"https://avatars0.githubusercontent.com/u/96978?v=4","gravatar_id":"","url":"https://api.github.com/users/tamsky","html_url":"https://github.com/tamsky","followers_url":"https://api.github.com/users/tamsky/followers","following_url":"https://api.github.com/users/tamsky/following{/other_user}","gists_url":"https://api.github.com/users/tamsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tamsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamsky/subscriptions","organizations_url":"https://api.github.com/users/tamsky/orgs","repos_url":"https://api.github.com/users/tamsky/repos","events_url":"https://api.github.com/users/tamsky/events{/privacy}","received_events_url":"https://api.github.com/users/tamsky/received_events","type":"User","site_admin":false},"labels":[{"id":127939292,"node_id":"MDU6TGFiZWwxMjc5MzkyOTI=","url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc","default":false},{"id":85946959,"node_id":"MDU6TGFiZWw4NTk0Njk1OQ==","url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-06-16T00:27:31Z","updated_at":"2018-08-30T22:42:01Z","closed_at":"2016-11-11T06:38:08Z","author_association":"CONTRIBUTOR","body":"This error should go away:\nhttps://github.com/hashicorp/terraform/blob/v0.5.3/command/apply.go#L106\n\nand, instead, be replaced with the ability to provide a plan file.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/417490789","html_url":"https://github.com/hashicorp/terraform/issues/2361#issuecomment-417490789","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2361","id":417490789,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzQ5MDc4OQ==","user":{"login":"tamsky","id":96978,"node_id":"MDQ6VXNlcjk2OTc4","avatar_url":"https://avatars0.githubusercontent.com/u/96978?v=4","gravatar_id":"","url":"https://api.github.com/users/tamsky","html_url":"https://github.com/tamsky","followers_url":"https://api.github.com/users/tamsky/followers","following_url":"https://api.github.com/users/tamsky/following{/other_user}","gists_url":"https://api.github.com/users/tamsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tamsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamsky/subscriptions","organizations_url":"https://api.github.com/users/tamsky/orgs","repos_url":"https://api.github.com/users/tamsky/repos","events_url":"https://api.github.com/users/tamsky/events{/privacy}","received_events_url":"https://api.github.com/users/tamsky/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T22:42:01Z","updated_at":"2018-08-30T22:42:01Z","author_association":"CONTRIBUTOR","body":"A long time ago @phinze asked:\r\n> what would you expect to happen when you specified a plan file as an argument to terraform destroy?\r\n\r\nKnowing what I know now, I understand what was missing from my mental model when I opened this issue 3 years ago:\r\n\r\nA `plan output file` contains a graph of actions to perform.\r\nTo me, now, it doesn't make sense to use a graph of \"actions\" as input to a process that destroys (all/some) resources, since the \"actions\" in the `plan output file` may not be limited to only destroy/delete actions -- it might have actions that create resources... which doesn't make sense in the context of `destroy`.\r\n\r\n@ozbillwang asked recently:\r\n> What's the differences in plan file with -destroy or without -destroy when terraform plan?\r\n\r\nMaybe @mitchellh can offer a better explanation, but my understanding of the contents of the \"plan file\" resulting from:\r\n- `plan -destroy`: is the \"plan file\" will contain an ordered set of actions needed to remove all resources that exist in your local/current `tfstate`.\r\n- `plan` (without `-destroy`): the \"plan file\" will contain an ordered set of actions that will transform the current real-world state into the state defined by the current terraform config (the union of all `*.tf` and `*.tf.json` files in the current directory)"}}
{"actor":{"display_login":"tamsky"}}