fix variable validation in project module to allow for null values

This commit is contained in:
Ludovico Magnocavallo 2020-11-04 12:06:01 +01:00
parent 7bd31ccf52
commit 8dc131550f
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ variable "parent" {
type = string
default = null
validation {
condition = can(regex("(organizations|folders)/[0-9]+", var.parent))
condition = var.parent == null || can(regex("(organizations|folders)/[0-9]+", var.parent))
error_message = "Parent must be of the form folders/folder_id or organizations/organization_id."
}
}