{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3561","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3561/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3561/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3561/events","html_url":"https://github.com/hashicorp/terraform/issues/3561","id":112326573,"number":3561,"title":"Google cloud dependencies not working with depends_on","user":{"login":"JorritSalverda","id":136472,"avatar_url":"https://avatars.githubusercontent.com/u/136472?v=3","gravatar_id":"","url":"https://api.github.com/users/JorritSalverda","html_url":"https://github.com/JorritSalverda","followers_url":"https://api.github.com/users/JorritSalverda/followers","following_url":"https://api.github.com/users/JorritSalverda/following{/other_user}","gists_url":"https://api.github.com/users/JorritSalverda/gists{/gist_id}","starred_url":"https://api.github.com/users/JorritSalverda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorritSalverda/subscriptions","organizations_url":"https://api.github.com/users/JorritSalverda/orgs","repos_url":"https://api.github.com/users/JorritSalverda/repos","events_url":"https://api.github.com/users/JorritSalverda/events{/privacy}","received_events_url":"https://api.github.com/users/JorritSalverda/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/provider/google-cloud","name":"provider/google-cloud","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T09:41:30Z","updated_at":"2015-10-20T18:56:08Z","closed_at":null,"body":"When doing a change to a google cloud persistent disk that necessitates a destroy/create terraform doesn't detect that the vm that depends on the disk using depends_on should first be destroyed and afterwards be recreated.\r\n\r\nI changed the snapshot the disk is created from which forced the destroy/create. The disk isn't attached to a vm in a normal way, but mounted directly into a docker container by the kubelet daemon running on the vm. This is why I use depends_on.\r\n\r\n```\r\nresource \"google_compute_disk\" \"disk1\" {\r\n    snapshot = \"some-snapshot\"\r\n}\r\n\r\nresource \"google_compute_instance\" \"vm1\" {\r\n    depends_on = [\"google_compute_disk.disk1\"]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/149666904","html_url":"https://github.com/hashicorp/terraform/issues/3561#issuecomment-149666904","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3561","id":149666904,"user":{"login":"lwander","id":4874941,"avatar_url":"https://avatars.githubusercontent.com/u/4874941?v=3","gravatar_id":"","url":"https://api.github.com/users/lwander","html_url":"https://github.com/lwander","followers_url":"https://api.github.com/users/lwander/followers","following_url":"https://api.github.com/users/lwander/following{/other_user}","gists_url":"https://api.github.com/users/lwander/gists{/gist_id}","starred_url":"https://api.github.com/users/lwander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwander/subscriptions","organizations_url":"https://api.github.com/users/lwander/orgs","repos_url":"https://api.github.com/users/lwander/repos","events_url":"https://api.github.com/users/lwander/events{/privacy}","received_events_url":"https://api.github.com/users/lwander/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T18:56:08Z","updated_at":"2015-10-20T18:56:08Z","body":"The `depends_on` attribute isn't exposed to the provider implementer, so this sounds like more of a core problem. What do you think @catsby?"}}