Files
threshold/enos/modules/build_boundary_docker_crt/main.tf
T
Tony bc40164871 chore(e2e): Update framework to remove boundary_docker_image_name (#6092)
* remove name var necessity in docker scenario

* rm log

* parse from docker load

* rm docker image name var from enos-variables

* rm boundary_docker_image_name from files
2025-09-30 10:25:37 -04:00

48 lines
833 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" {
description = "Path of boundary docker image file to load"
type = string
}
variable "cli_build_path" {
description = "Path to cli zip file"
type = string
}
variable "edition" {
default = "oss"
}
resource "enos_local_exec" "load_docker_image" {
inline = ["docker load -i ${var.path}"]
}
locals {
boundary_docker_image_name = replace(
element(
split("\n", trimspace(enos_local_exec.load_docker_image.stdout)),
-1
),
"Loaded image: ",
""
)
}
output "cli_zip_path" {
value = var.cli_build_path
}
output "image_name" {
value = local.boundary_docker_image_name
}