Skip to content

Commit e33a42b

Browse files
jmfiolaJacob Fiola
andauthored
make license_key optional if fleet_url is provided (#15)
Co-authored-by: Jacob Fiola <[email protected]>
1 parent 06f3820 commit e33a42b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

variables.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ variable "community_string" {
3535
}
3636

3737
variable "license_key" {
38-
description = "Your Corelight sensor license key"
38+
description = "Your Corelight sensor license key. Optional if fleet_url is configured."
3939
sensitive = true
4040
type = string
41+
default = ""
42+
43+
validation {
44+
condition = var.license_key != "" || var.fleet_url != ""
45+
error_message = "Either license_key must be provided or fleet_url must be configured."
46+
}
4147
}
4248

4349
variable "asg_lambda_iam_role_arn" {
@@ -210,3 +216,4 @@ variable "fleet_no_proxy" {
210216
default = ""
211217
description = "(optional) hosts or domains to bypass the proxy for fleet traffic"
212218
}
219+

0 commit comments

Comments
 (0)