2023-03-22 10:47:17 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
|
|
|
|
terraform {
|
|
|
|
|
required_providers {
|
|
|
|
|
enos = {
|
2024-06-10 11:13:09 -04:00
|
|
|
source = "registry.terraform.io/hashicorp-forge/enos"
|
2023-03-22 10:47:17 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "path" {
|
|
|
|
|
description = "Path of boundary docker image file to load"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-31 09:10:21 -04:00
|
|
|
variable "cli_build_path" {
|
|
|
|
|
description = "Path to cli zip file"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-27 17:40:45 -04:00
|
|
|
variable "edition" {
|
|
|
|
|
default = "oss"
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 10:47:17 -04:00
|
|
|
resource "enos_local_exec" "load_docker_image" {
|
|
|
|
|
inline = ["docker load -i ${var.path}"]
|
|
|
|
|
}
|
2023-07-31 09:10:21 -04:00
|
|
|
|
|
|
|
|
output "cli_zip_path" {
|
|
|
|
|
value = var.cli_build_path
|
|
|
|
|
}
|