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

This commit is contained in:
Jason Rothstein 2020-08-09 15:54:48 -05:00
parent 5b69523ff4
commit 3f903bcb6c

View File

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