
variable "communicator_type" {
  type = string
}

variable "foo" {
  type    = string
  default = "bar"
}

variable "scriptpath" {
  type = string
}

source "null" "autogenerated_1" {
  communicator = "${var.communicator_type}"
}

build {
  sources = ["source.null.autogenerated_1"]

  provisioner "shell" {
    script = "${var.scriptpath}"
  }

}
