{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/15447","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/15447/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/15447/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/15447/events","html_url":"https://github.com/hashicorp/terraform/issues/15447","id":239852159,"number":15447,"title":"Can't taint from subdirectory","user":{"login":"spanktar","id":601300,"avatar_url":"https://avatars0.githubusercontent.com/u/601300?v=3","gravatar_id":"","url":"https://api.github.com/users/spanktar","html_url":"https://github.com/spanktar","followers_url":"https://api.github.com/users/spanktar/followers","following_url":"https://api.github.com/users/spanktar/following{/other_user}","gists_url":"https://api.github.com/users/spanktar/gists{/gist_id}","starred_url":"https://api.github.com/users/spanktar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spanktar/subscriptions","organizations_url":"https://api.github.com/users/spanktar/orgs","repos_url":"https://api.github.com/users/spanktar/repos","events_url":"https://api.github.com/users/spanktar/events{/privacy}","received_events_url":"https://api.github.com/users/spanktar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-30T18:13:13Z","updated_at":"2017-07-05T17:26:06Z","closed_at":null,"body":"### Terraform Version\r\n0.9.6-0.9.10\r\n\r\nWe use subdirectories to isolate AWS Accounts (not environments) so they can have their own state and tfvars files. I cannot seem to get taint to work in this setup.\r\n\r\n### Expected Behavior\r\n`terraform taint some.resource ..` should taint the resource\r\n\r\n### Actual Behavior\r\n```\r\nBackend reinitialization required. Please run \"terraform init\".\r\nReason: Unsetting the previously set backend \"s3\"\r\n\r\nThe \"backend\" is the interface that Terraform uses to store state,\r\nperform operations, etc. If this message is showing up, it means that the\r\nTerraform configuration you're using is using a custom configuration for\r\nthe Terraform backend.\r\n\r\nChanges to backend configurations require reinitialization. This allows\r\nTerraform to setup the new configuration, copy existing state, etc. This is\r\nonly done during \"terraform init\". Please run that command now then try again.\r\n\r\nIf the change reason above is incorrect, please verify your configuration\r\nhasn't changed and try again. At this point, no changes to your existing\r\nconfiguration or state have been made.\r\n\r\nFailed to load backend: Initialization required. Please see the error message above.\r\n```\r\n\r\n### Important Factoids\r\nRemote state in S3, backend properly initialized. Running `terraform apply ..` works fine.\r\n\r\nI have tried to use the -state flag like so, to no avail:\r\n\r\n`terraform taint -state=FOLDER/.terraform/terraform.tfstate some.resource` in the root directory where all the terraform files are. Same issue.\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/313170804","html_url":"https://github.com/hashicorp/terraform/issues/15447#issuecomment-313170804","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/15447","id":313170804,"user":{"login":"jbardin","id":35067,"avatar_url":"https://avatars1.githubusercontent.com/u/35067?v=3","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},"created_at":"2017-07-05T17:26:06Z","updated_at":"2017-07-05T17:26:06Z","body":"@spanktar,\r\n\r\nAfter re-reading this, it appears that you're expecting `taint` to have a PATH argument, which it does not. That might be something we can add to make it work more like `plan` and `apply`.\r\n\r\n\r\n"}}
{"actor":{"display_login":"jbardin"}}