Files
threshold/enos/modules/read_license/main.tf
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
476 B
Terraform
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# Loads boundary license from file or environment variable
# If license is null or not provided, then the license is returned from the file at license_path
variable "license_path" {
description = "Path to the boundary license file"
}
variable "license" {
description = "Boundary license"
default = null
}
output "license" {
value = var.license != null ? var.license : file(var.license_path)
}