add failing test case

This commit is contained in:
Adrien Delorme 2020-10-30 15:40:31 +01:00
parent 9932fd1217
commit b892414e84
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
variable "image_id" {
type = string
default = "potato"
validation {
condition = length(var.image_id) > 4 && substr(var.image_id, 0, 4) == "ami-"
error_message = "The image_id value must be a valid AMI id, starting with \"ami-\"."
}
}

View File

@ -6,4 +6,4 @@ variable "image_id" {
condition = length(var.image_id) > 4 && substr(var.image_id, 0, 4) == "ami-"
error_message = "The image_id value must be a valid AMI id, starting with \"ami-\"."
}
}
}