{"action":"closed","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/42","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/42/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/issues/42/events","html_url":"https://github.com/terraform-providers/terraform-provider-hcloud/issues/42","id":378244225,"node_id":"MDU6SXNzdWUzNzgyNDQyMjU=","number":42,"title":"Consider adding volume association resource","user":{"login":"MariusRumpf","id":2364426,"node_id":"MDQ6VXNlcjIzNjQ0MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/2364426?v=4","gravatar_id":"","url":"https://api.github.com/users/MariusRumpf","html_url":"https://github.com/MariusRumpf","followers_url":"https://api.github.com/users/MariusRumpf/followers","following_url":"https://api.github.com/users/MariusRumpf/following{/other_user}","gists_url":"https://api.github.com/users/MariusRumpf/gists{/gist_id}","starred_url":"https://api.github.com/users/MariusRumpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariusRumpf/subscriptions","organizations_url":"https://api.github.com/users/MariusRumpf/orgs","repos_url":"https://api.github.com/users/MariusRumpf/repos","events_url":"https://api.github.com/users/MariusRumpf/events{/privacy}","received_events_url":"https://api.github.com/users/MariusRumpf/received_events","type":"User","site_admin":false},"labels":[{"id":955533498,"node_id":"MDU6TGFiZWw5NTU1MzM0OTg=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-hcloud/labels/new-resource","name":"new-resource","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-07T11:14:04Z","updated_at":"2018-11-15T12:02:39Z","closed_at":"2018-11-15T12:02:39Z","author_association":"NONE","body":"Similar to the `hcloud_floating_ip_assignment` it would be nice if one might assign an existing volume to a `hcloud_server` resource the same way. It might look like the following then: \r\n\r\n``` \r\nresource \"hcloud_volume_assignment\" \"node_1_volume_1\" {\r\n    volume_id = \"${data.hcloud_volume.volume1.id}\"\r\n    server_id = \"${hcloud_server.node1.id}\"\r\n}\r\n\r\ndata \"hcloud_volume\" \"volume1\" {\r\n    name = \"volume1\"\r\n}\r\n\r\nresource \"hcloud_server\" \"node1\" {\r\n  name = \"node1\"\r\n  image = \"debian-9\"\r\n  server_type = \"cx11\"\r\n}\r\n```"}}
{"actor":{"display_login":"LKaemmerling"}}