Skip to content

Commit b6d5614

Browse files
jmfiolaJacob Fiola
andauthored
make license_key optional if fleet_url is provided (#18)
Co-authored-by: Jacob Fiola <[email protected]>
1 parent 2a42c54 commit b6d5614

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

variables.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,15 @@ variable "health_check_http_port" {
113113
}
114114

115115
variable "license_key" {
116-
description = "Your Corelight sensor license key"
117-
type = string
116+
description = "Your Corelight sensor license key. Optional if fleet_url is configured."
118117
sensitive = true
118+
type = string
119+
default = ""
120+
121+
validation {
122+
condition = var.license_key != "" || var.fleet_url != ""
123+
error_message = "Either license_key must be provided or fleet_url must be configured."
124+
}
119125
}
120126

121127
variable "community_string" {

0 commit comments

Comments
 (0)