
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-\"."
  }
}

source "null" "test" {
  communicator = "none"
}

build {
  sources = ["null.test"]
}
