Files

18 lines
362 B
HCL
Raw Permalink Normal View History

2020-10-30 12:41:29 +01:00
variable "image_id" {
type = string
default = "ami-something-something"
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-\"."
}
2020-10-30 15:40:31 +01:00
}
2022-09-23 16:59:17 -04:00
source "null" "test" {
communicator = "none"
}
build {
sources = ["null.test"]
}