From 3f903bcb6c4662fca832093112d9c2c9bdf4cde5 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Sun, 9 Aug 2020 15:54:48 -0500 Subject: [PATCH] Error: Error creating Volume: POST https://api.digitalocean.com/v2/volumes: 422 (request "9a9f0352-59b2-4bf8-9d4a-a848ccadf54f") failed to create volume: invalid volume name. names must be lowercase and alphanumeric --- 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 74e3be9..f95f045 100644 --- a/resource.digitalocean_volume.this.tf +++ b/resource.digitalocean_volume.this.tf @@ -2,7 +2,7 @@ resource "digitalocean_volume" "this" { 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}" + name = var.host_name region = var.region size = var.volume_size }