Files
threshold/enos/modules/get_boundary_edition/main.tf
T
Michael Li 843893c1c7 chore(e2e): Clean up enos variables (#6591)
* chore(e2e): No more required enos variables

# Conflicts:
#	.github/workflows/enos-run.yml

* CR
2026-04-23 09:24:13 -04:00

25 lines
573 B
Terraform

# Copyright IBM Corp. 2020, 2026
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_providers {
external = {
source = "hashicorp/external"
}
}
}
data "external" "repo_root" {
program = ["bash", "-c", "printf '{\"path\":\"%s\"}' \"$(git rev-parse --show-toplevel)\""]
}
data "external" "make_edition" {
program = ["bash", "-c", "edition=$(make -s -C '${data.external.repo_root.result.path}' edition | tr -d '\\r\\n') && printf '{\"edition\":\"%s\"}' \"$edition\""]
}
output "edition" {
value = data.external.make_edition.result.edition
}