volume_size should be >= 1 to build a volume

This commit is contained in:
Jason Rothstein 2020-08-09 15:45:27 -05:00
parent 6249fafed2
commit 10a5de8ebd

View File

@ -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}"