add failing test case
This commit is contained in:
parent
9932fd1217
commit
b892414e84
|
@ -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-\"."
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,4 +6,4 @@ variable "image_id" {
|
||||||
condition = length(var.image_id) > 4 && substr(var.image_id, 0, 4) == "ami-"
|
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-\"."
|
error_message = "The image_id value must be a valid AMI id, starting with \"ami-\"."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue