From 10a5de8ebd5d37cb01bed1dc47fb56206fb2ff2d Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Sun, 9 Aug 2020 15:45:27 -0500 Subject: [PATCH] volume_size should be >= 1 to build a volume --- resource.digitalocean_volume.this.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource.digitalocean_volume.this.tf b/resource.digitalocean_volume.this.tf index 7fd0b5d..37f6434 100644 --- a/resource.digitalocean_volume.this.tf +++ b/resource.digitalocean_volume.this.tf @@ -1,5 +1,5 @@ resource "digitalocean_volume" "this" { - count = var.volume_size == 0 ? 1 : 0 + count = var.volume_size >= 1 ? 1 : 0 description = "Data Volume for ${var.host_name}.${var.domain_name}" initial_filesystem_type = "ext4" name = "${var.host_name}.${var.domain_name}"