prefix variable consistency across modules

This commit is contained in:
Natalia Strelkova
2022-11-10 15:05:53 +00:00
parent b7bfcf3575
commit 68c3b13d6a
19 changed files with 96 additions and 66 deletions

View File

@@ -105,9 +105,13 @@ variable "network" {
}
variable "prefix" {
description = "Prefix used to generate instance names."
description = "Optional prefix used to generate instance names."
type = string
default = null
validation {
condition = var.prefix != ""
error_message = "Prefix can not be empty, please use null instead."
}
}
variable "project_id" {