Files
threshold/enos/modules/build_local/main.tf
T
Michael Li 333b9e855d chore(e2e): Use public version of enos (#4872)
* chore(e2e): Use public version of enos

* chore(e2e): Move vault module to this repo

terraform-enos-aws-vault is no longer supported
2024-06-10 11:13:09 -04:00

44 lines
786 B
Terraform

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_providers {
enos = {
source = "registry.terraform.io/hashicorp-forge/enos"
}
}
}
variable "path" {
default = "/tmp"
}
variable "build_target" {
default = "build-ui build"
}
variable "binary_name" {
default = "boundary"
}
variable "edition" {
default = "oss"
}
resource "enos_local_exec" "build" {
environment = {
"GOOS" = "linux",
"GOARCH" = "amd64",
"CGO_ENABLED" = 0,
"ARTIFACT_PATH" = var.path
"BINARY_NAME" = var.binary_name
"BUILD_TARGET" = var.build_target
"EDITION" = var.edition
}
scripts = ["${path.module}/templates/build.sh"]
}
output "artifact_path" {
value = "${var.path}/boundary.zip"
}