forked from trussworks/terraform-aws-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
274 lines (229 loc) · 6.74 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
variable "config_name" {
description = "The name of the AWS Config instance."
type = string
default = "aws-config"
}
variable "config_aggregator_name" {
description = "The name of the aggregator."
type = string
default = "organization"
}
variable "aggregate_organization" {
description = "Aggregate compliance data by organization"
type = bool
default = false
}
variable "config_logs_bucket" {
description = "The S3 bucket for AWS Config logs."
type = string
}
variable "config_logs_prefix" {
description = "The S3 prefix for AWS Config logs."
type = string
default = "config"
}
variable "config_max_execution_frequency" {
description = "The maximum frequency with which AWS Config runs evaluations for a rule."
type = string
default = "TwentyFour_Hours"
}
variable "config_delivery_frequency" {
description = "The frequency with which AWS Config delivers configuration snapshots."
default = "Six_Hours"
type = string
}
variable "acm_days_to_expiration" {
description = "Specify the number of days before the rule flags the ACM Certificate as noncompliant."
type = number
default = 14
}
variable "password_require_uppercase" {
description = "Require at least one uppercase character in password."
type = bool
default = true
}
variable "password_require_lowercase" {
description = "Require at least one lowercase character in password."
type = bool
default = true
}
variable "password_require_symbols" {
description = "Require at least one symbol in password."
type = bool
default = true
}
variable "password_require_numbers" {
description = "Require at least one number in password."
type = bool
default = true
}
variable "password_min_length" {
description = "Password minimum length."
type = number
default = 14
}
variable "password_reuse_prevention" {
description = "Number of passwords before allowing reuse."
type = number
default = 24
}
variable "password_max_age" {
description = "Number of days before password expiration."
type = number
default = 90
}
variable "check_root_account_mfa_enabled" {
description = "Enable root-account-mfa-enabled rule"
type = bool
default = false
}
variable "check_guard_duty" {
description = "Enable guardduty-enabled-centralized rule"
type = bool
default = false
}
variable "check_rds_public_access" {
description = "Enable rds-instance-public-access-check rule"
type = bool
default = false
}
variable "check_multi_region_cloud_trail" {
description = "Enable multi-region-cloud-trail-enabled rule"
type = bool
default = false
}
variable "check_cloudtrail_enabled" {
description = "Enable cloudtrail-enabled rule"
type = bool
default = true
}
variable "check_cloud_trail_encryption" {
description = "Enable cloud-trail-encryption-enabled rule"
type = bool
default = false
}
variable "check_cloud_trail_log_file_validation" {
description = "Enable cloud-trail-log-file-validation-enabled rule"
type = bool
default = false
}
variable "check_eip_attached" {
description = "Enable eip-attached rule"
type = bool
default = false
}
variable "check_required_tags" {
description = "Enable required-tags rule"
type = bool
default = false
}
variable "required_tags_resource_types" {
description = "Resource types to check for tags."
type = list(string)
default = []
}
variable "required_tags" {
description = "A map of required resource tags. Format is tagNKey, tagNValue, where N is int. Values are optional."
type = map(string)
default = {}
}
variable "check_instances_in_vpc" {
description = "Enable instances-in-vpc rule"
type = bool
default = true
}
variable "check_acm_certificate_expiration_check" {
description = "Enable acm-certificate-expiration-check rule"
type = bool
default = true
}
variable "check_iam_password_policy" {
description = "Enable iam-password-policy rule"
type = bool
default = true
}
variable "check_iam_group_has_users_check" {
description = "Enable iam-group-has-users-check rule"
type = bool
default = true
}
variable "check_iam_user_no_policies_check" {
description = "Enable iam-user-no-policies-check rule"
type = bool
default = true
}
variable "check_ec2_volume_inuse_check" {
description = "Enable ec2-volume-inuse-check rule"
type = bool
default = true
}
variable "check_approved_amis_by_tag" {
description = "Enable approved-amis-by-tag rule"
type = bool
default = false
}
variable "ami_required_tag_key_value" {
description = "Tag/s key and value which AMI has to have in order to be compliant: Example: key1:value1,key2:value2"
type = string
default = ""
}
variable "check_ec2_encrypted_volumes" {
description = "Enable ec2-encrypted-volumes rule"
type = bool
default = true
}
variable "check_rds_storage_encrypted" {
description = "Enable rds-storage-encrypted rule"
type = bool
default = true
}
variable "check_rds_snapshots_public_prohibited" {
description = "Enable rds-snapshots-public-prohibited rule"
type = bool
default = true
}
variable "check_s3_bucket_public_write_prohibited" {
description = "Enable s3-bucket-public-write-prohibited rule"
type = bool
default = true
}
variable "check_cloudwatch_log_group_encrypted" {
description = "Enable cloudwatch-log-group-encryption rule"
type = bool
default = true
}
variable "check_iam_root_access_key" {
description = "Enable iam-root-access-key rule"
type = bool
default = true
}
variable "check_ebs_snapshot_public_restorable" {
description = "Enable ebs-snapshot-public-restorable rule"
type = bool
default = true
}
variable "check_vpc_default_security_group_closed" {
description = "Enable vpc-default-security-group-closed rule"
type = bool
default = true
}
variable "check_s3_bucket_ssl_requests_only" {
description = "Enable s3-bucket-ssl-requests-only rule"
type = bool
default = true
}
variable "tags" {
description = "Tags to apply to AWS Config resources"
type = map(string)
default = {}
}
variable "include_global_resource_types" {
description = "Specifies whether AWS Config includes all supported types of global resources with the resources that it records."
type = bool
default = true
}
variable "config_sns_topic_arn" {
description = "An SNS topic to stream configuration changes and notifications to."
type = string
default = null
}