Skip to content

Commit deb6865

Browse files
jmfiolaJacob Fiola
andauthored
make license_key optional if fleet_url is provided (#18)
Co-authored-by: Jacob Fiola <jacob.fiola@corelight.com>
1 parent 599ca2c commit deb6865

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
@@ -9,9 +9,15 @@ variable "resource_group_name" {
99
}
1010

1111
variable "license_key" {
12-
description = "Your Corelight sensor license key"
13-
type = string
12+
description = "Your Corelight sensor license key. Optional if fleet_url is configured."
1413
sensitive = true
14+
type = string
15+
default = ""
16+
17+
validation {
18+
condition = var.license_key != "" || var.fleet_url != ""
19+
error_message = "Either license_key must be provided or fleet_url must be configured."
20+
}
1521
}
1622

1723
variable "management_subnet_id" {

0 commit comments

Comments
 (0)