-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathvariables.tf
132 lines (110 loc) · 3.92 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
variable "name_scan" {
default = "s3-anti-virus-scan"
description = "Name for resources associated with anti-virus scanning"
type = string
}
variable "name_update" {
default = "s3-anti-virus-updates"
description = "Name for resources associated with anti-virus updating"
type = string
}
variable "cloudwatch_logs_retention_days" {
default = 90
description = "Number of days to keep logs in AWS CloudWatch."
type = string
}
variable "lambda_s3_bucket" {
description = "The name of the S3 bucket used to store the Lambda builds."
type = string
}
variable "lambda_version" {
description = "The version the Lambda function to deploy."
}
variable "lambda_package" {
description = "The name of the lambda package. Used for a directory tree and zip file."
type = string
default = "anti-virus"
}
variable "lambda_package_key" {
description = "The object key for the lambda distribution. If given, the value is used as the key in lieu of the value constructed using `lambda_package` and `lambda_version`."
type = string
default = null
}
variable "memory_size" {
description = "Lambda memory allocation, in MB"
type = string
default = 2048
}
variable "kms_key_sns_arn" {
description = "ARN of the KMS Key to use for SNS Encryption"
type = string
default = ""
}
variable "av_update_minutes" {
default = 180
description = "How often to download updated Anti-Virus databases."
type = string
}
variable "av_scan_buckets" {
description = "A list of S3 bucket names to scan for viruses."
type = list(string)
}
variable "permissions_boundary" {
description = "ARN of the boundary policy to attach to IAM roles."
type = string
default = null
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}
variable "timeout_seconds" {
description = "Lambda timeout, in seconds"
type = string
default = 300
}
variable "av_definition_s3_bucket" {
description = "Bucket containing antivirus database files."
type = string
}
variable "av_definition_s3_prefix" {
description = "Prefix for antivirus database files."
type = string
default = "clamav_defs"
}
variable "av_scan_start_sns_arn" {
description = "SNS topic ARN to publish notification about start of scan (optional)."
type = string
default = ""
}
variable "av_status_sns_arn" {
description = "SNS topic ARN to publish scan results (optional)."
type = string
default = ""
}
variable "av_status_sns_publish_clean" {
description = "Publish AV_STATUS_CLEAN results to AV_STATUS_SNS_ARN."
type = string
default = "True"
}
variable "av_status_sns_publish_infected" {
description = "Publish AV_STATUS_INFECTED results to AV_STATUS_SNS_ARN."
type = string
default = "True"
}
variable "av_delete_infected_files" {
description = "Set it True in order to delete infected values."
type = string
default = "False"
}
variable "cloudwatch_kms_arn" {
description = "The arn of the kms key used for encrypting the cloudwatch log groups created by this module."
type = string
default = ""
}
variable "skip_s3_notification" {
description = "Boolean indicating if the bucket notification should not be added. This module implementation will not operate without a bucket notification. However, since bucket notifications can only be managed once, if an implementer wants additional notifications on the bucket, they must be managed outside this module. If you give this variable as `true`, you *must* add a bucket notification to the lambda given in outputs as `scan_lambda_function_arn`. See [this issue (#510) on the provider](https://github.com/hashicorp/terraform-provider-aws/issues/501#issuecomment-445106037) for more details on the topic."
type = bool
default = false
}