Attach the created volume

This commit is contained in:
2020-08-09 15:50:14 -05:00
parent 10a5de8ebd
commit 5b69523ff4
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
resource "digitalocean_volume_attachment" "this" {
count = var.volume_size > 0 ? 1 : 0
droplet_id = digitalocean_droplet.this.id
volume_id = digitalocean_volume.this[0].id
}