Files
threshold/enos/modules/build_local/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

26 lines
448 B
Terraform

terraform {
required_providers {
enos = {
source = "app.terraform.io/hashicorp-qti/enos"
}
}
}
variable "path" {
default = "/tmp"
}
resource "enos_local_exec" "build" {
environment = {
"GOOS" = "linux",
"GOARCH" = "amd64",
"CGO_ENABLED" = 0,
"ARTIFACT_PATH" = var.path
}
scripts = ["${path.module}/templates/build.sh"]
}
output "artifact_path" {
value = "${var.path}/boundary.zip"
}