Skip to content

Commit a947245

Browse files
committed
Add descriptions and types to variables
1 parent a9c0f06 commit a947245

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

terraform/variables.tf

+64-2
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,162 @@
11
/* See terraform.tfvars for descriptions of each of the variables. */
22

33
variable "aws_account_id" {
4+
type = string
5+
description = "12-digit AWS account ID"
46
}
57

68
variable "aws_region" {
9+
type = string
10+
description = "AWS region in which to deploy the BinaryAlert components"
711
}
812

913
variable "name_prefix" {
14+
type = string
15+
description = "Prefix used in all resource names (required for uniqueness) E.g. 'company_team'"
1016
}
1117

1218
variable "enable_carbon_black_downloader" {
19+
type = bool
20+
description = "Whether to enable CarbonBlack Downloader resources"
1321
}
1422

1523
variable "carbon_black_url" {
24+
type = string
25+
description = "URL of the CarbonBlack server"
1626
}
1727

1828
variable "carbon_black_timeout" {
29+
type = number
30+
description = "Timeout to use for Carbon Black API client. The client default is 60, so set to something lower if desired"
1931
}
2032

2133
variable "encrypted_carbon_black_api_token" {
34+
type = string
35+
description = "Encrypted API token used to interface with CarbonBlack"
2236
}
2337

2438
variable "s3_log_bucket" {
39+
type = string
40+
description = "Pre-existing bucket in which to store S3 access logs. If not specified, one will be created"
2541
}
2642

2743
variable "s3_log_prefix" {
44+
type = string
45+
description = "Log files will be stored in S3 with this prefix"
2846
}
2947

3048
variable "s3_log_expiration_days" {
49+
type = number
50+
description = "Access logs expire after this many days. Has no effect if using pre-existing bucket for logs"
3151
}
3252

3353
variable "lambda_log_retention_days" {
54+
type = number
55+
description = "How long to retain Lambda function logs for in days"
3456
}
3557

3658
variable "tagged_name" {
59+
type = string
60+
description = "Assigns this as the value for tag key 'Name' for all supported resources (CloudWatch logs, Dynamo, KMS, Lambda, S3, SQS)"
3761
}
3862

3963
variable "metric_alarm_sns_topic_arn" {
64+
type = string
65+
description = "Use an existing SNS topic for metric alarms (instead of creating one automatically)"
4066
}
4167

4268
variable "expected_analysis_frequency_minutes" {
69+
type = number
70+
description = "Alarm if no binaries are analyzed for this amount of time"
4371
}
4472

4573
variable "dynamo_read_capacity" {
74+
type = number
75+
description = "Provisioned read capacity for the Dynamo table which stores match results"
4676
}
4777

4878
variable "dynamo_write_capacity" {
79+
type = number
80+
description = "Provisioned write capacity for the Dynamo table which stores match results"
4981
}
5082

5183
variable "lambda_analyze_memory_mb" {
84+
type = number
85+
description = "Memory limit for the analyzer function"
5286
}
5387

5488
variable "lambda_analyze_timeout_sec" {
89+
type = number
90+
description = "Time limit for the analyzer function"
5591
}
5692

5793
variable "lambda_analyze_concurrency_limit" {
94+
type = number
95+
description = "Concurrency limit for the analyzer function"
5896
}
5997

6098
variable "lambda_download_memory_mb" {
99+
type = number
100+
description = "Memory limit for the downloader function"
61101
}
62102

63103
variable "lambda_download_timeout_sec" {
104+
type = number
105+
description = "Time limit for the downloader function"
64106
}
65107

66108
variable "lambda_download_concurrency_limit" {
109+
type = number
110+
description = "Concurrency limit for the downloader function"
67111
}
68112

69113
variable "force_destroy" {
114+
type = bool
115+
description = "WARNING: If force destroy is enabled, all objects in the S3 bucket(s) will be deleted during"
70116
}
71117

72118
variable "external_s3_bucket_resources" {
73-
type = list(string)
119+
type = list(string)
120+
description = "Grants appropriate S3 bucket permissions to the analyzer function if you are using BinaryAlert to scan existing S3 buckets"
74121
}
75122

76123
variable "external_kms_key_resources" {
77-
type = list(string)
124+
type = list(string)
125+
description = "Grants appropriate KMS permissions to the analyzer function if you are using BinaryAlert to scan existing S3 buckets"
78126
}
79127

80128
variable "enable_negative_match_alerts" {
129+
type = bool
130+
description = "Create a separate SNS topic which reports files that do NOT match any YARA rules"
81131
}
82132

83133
variable "analyze_queue_batch_size" {
134+
type = number
135+
description = "Maximum number of messages that will be received by each invocation of the analyzer function"
84136
}
85137

86138
variable "download_queue_batch_size" {
139+
type = number
140+
description = "Maximum number of messages that will be received by each invocation of the downloader function"
87141
}
88142

89143
variable "analyze_queue_retention_secs" {
144+
type = number
145+
description = "Messages in the analyzer queue will be retained and retried for the specified duration until expiring"
90146
}
91147

92148
variable "download_queue_retention_secs" {
149+
type = number
150+
description = "Messages in the downloader queue will be retained and retried for the specified duration until expiring"
93151
}
94152

95153
variable "objects_per_retro_message" {
154+
type = number
155+
description = "During a retroactive scan, number of S3 objects to pack into a single SQS message"
96156
}
97157

98158
variable "download_queue_max_receives" {
159+
type = number
160+
description = "Number of times a download SQS message is attempted to be delivered successfully before being moved to the DLQ"
99161
}
100162

0 commit comments

Comments
 (0)