Hostname only as unasble to evaluate the variable expandsion

This commit is contained in:
Jason Rothstein 2021-10-17 14:50:07 -05:00
parent 7e2dce7c86
commit 1d3df8fe95

View File

@ -1,7 +1,7 @@
resource "digitalocean_volume" "this" {
count = var.use_volume > 0 ? 1 : 0
description = "Data Volume for ${var.host_name}.${var.domain_name}"
name = "${var.host_name}.${var.domain_name}"
name = var.host_name
region = var.region
size = var.volume_size
}