2023-04-27 14:59:46 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2025-05-07 12:47:09 -07:00
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
}
|
2023-04-27 14:59:46 -04:00
|
|
|
|
|
|
|
|
output "license" {
|
2025-05-07 12:47:09 -07:00
|
|
|
value = var.license != null ? var.license : file(var.license_path)
|
2023-04-27 14:59:46 -04:00
|
|
|
}
|