637576b9d2
- The provider isn't needed and there is an error in the source anyways. ❯ enos scenario validate managed_keys Scenario: managed_keys [arch:arm64 backend:raft builder:local distro:ubuntu edition:ent seal:awskms] Generate: ✅ Init: ❌ Error: Invalid provider registry host The host "hashicorp.com" given in in provider source address "hashicorp.com/qti/enos" does not offer a Terraform provider registry.
31 lines
653 B
HCL
31 lines
653 B
HCL
variable "bundle_path" {
|
|
type = string
|
|
default = "/tmp/vault.zip"
|
|
}
|
|
|
|
variable "build_tags" {
|
|
type = list(string)
|
|
description = "The build tags to pass to the Go compiler"
|
|
}
|
|
|
|
variable "goarch" {
|
|
type = string
|
|
description = "The Go architecture target"
|
|
default = "amd64"
|
|
}
|
|
|
|
variable "goos" {
|
|
type = string
|
|
description = "The Go OS target"
|
|
default = "linux"
|
|
}
|
|
|
|
resource "enos_local_exec" "build" {
|
|
content = templatefile("${path.module}/templates/build.sh", {
|
|
bundle_path = var.bundle_path,
|
|
build_tags = join(" ", var.build_tags)
|
|
goarch = var.goarch
|
|
goos = var.goos
|
|
})
|
|
}
|