Files
threshold/enos/modules/binary_finder/main.tf
T
Jaymala 369f818f4c Update Enos run (#2326)
* Rotate the credential used for the Enos SSH Key
* Use the enos provider from TFC

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
2022-08-16 11:07:19 -06:00

20 lines
407 B
Terraform

terraform {
required_providers {
enos = {
source = "app.terraform.io/hashicorp-qti/enos"
}
}
}
variable "name" {
description = "the binary name"
}
resource "enos_local_exec" "find_binary" {
inline = ["type -P ${var.name} || (echo \"\n\nCould not find ${var.name} executable. Have you installed it?\n\n\" && exit 1)"]
}
output "path" {
value = enos_local_exec.find_binary.stdout
}