* Rotate the credential used for the Enos SSH Key * Use the enos provider from TFC Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
20 lines
407 B
Terraform
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
|
|
}
|