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