forked from radimsuckr/terraform-aws-bucket-antivirus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
85 lines (72 loc) · 2.34 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
variable "buckets_to_scan" {
description = "List of bucket names to be scanned by the antivirus"
type = list(object({
bucket = string
prefixes = list(string)
}))
}
variable "scanner_environment_variables" {
default = {}
description = "Custom environment variables for the scanner function"
type = map(string)
}
variable "updater_environment_variables" {
default = {}
description = "Custom environment variables for the definitions update function"
type = map(string)
}
variable "allow_public_access" {
default = false
description = "If true, contents of the bucket in which the antivirus definitions are saved will be public. Good for sharing the same definitions across multiple accounts."
type = bool
}
variable "antivirus_update_rate" {
default = "3 hours"
description = "Configures the antivirus update rate. Syntax is the same of cloudwatch rate schedule expression for rules"
type = string
}
variable "create_sns_scanner_destination_topic" {
default = false
description = "Create an SNS topic for notifications from scanner Lambda"
type = bool
}
variable "sns_scanner_destination_topic_kms_key" {
default = "alias/aws/sns"
description = "KMS key id to use for SNS scanner destination topic encryption"
type = string
}
variable "update_antivirus_definitions_on_deploy" {
default = true
description = "Toggle to update antivirus definitions on deploy"
type = bool
}
variable "av_signature_field_name" {
description = "Name of the field containing antivirus signature"
default = "av-signature"
type = string
}
variable "av_status_field_name" {
description = "Name of the field containing antivirus result"
default = "av-status"
type = string
}
variable "av_timestamp_field_name" {
description = "Name of the field containing antivirus timestamp"
default = "av-timestamp"
type = string
}
variable "av_scan_start_field_name" {
description = "Name of the field containing antivirus scan start timestamp"
default = "av-scan-start"
type = string
}
variable "name_prefix" {
default = ""
description = "Prefix for all resource names"
type = string
}
variable "name_suffix" {
default = ""
description = "Suffix for all resource names"
type = string
}