-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
92 lines (77 loc) · 2.15 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
variable "aws_regions" {
description = "The AWS region(s) for AWS Config Aggregator"
type = list(string)
}
variable "all_regions" {
description = "AWS Config Aggregator pulls from all AWS Regions"
type = bool
default = false
}
variable "is_gov" {
description = "AWS Config deployed in Gov account?"
type = bool
}
variable "account_ids" {
description = "If Aggregating by Account - AWS Account IDs for AWS Config Aggregator"
type = list(string)
default = [""]
}
variable "resource_prefix" {
description = "The prefix for the s3 bucket names"
type = string
}
variable "is_enabled" {
description = "Should config recorder be enabled?"
type = bool
default = true
}
variable "s3_config_arn" {
description = "S3 Bucket ARN for AWS Config"
type = string
}
variable "s3_config_id" {
description = "S3 bucket ID for AWS Config"
type = string
}
variable "packs_s3_key" {
description = "S3 Bucket prefix for the Packs uploaded"
type = string
default = "packs"
}
variable "config_kms_key_arn" {
description = "AWS Config KMS Key Arn"
type = string
}
variable "s3_kms_key_arn" {
description = "AWS S3 KMS Key Arn"
type = string
}
variable "sns_kms_key_id" {
description = "SNS KMS key ID"
type = string
}
variable "delivery_frequency" {
type = string
description = "frequency for the config snapshots to be sent to S3"
validation {
condition = contains([
"One_Hour", "Three_Hours", "Six_Hours", "Twelve_Hours", "TwentyFour_Hours"
], var.delivery_frequency)
error_message = "Valid values for var: test_variable are (One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours)."
}
}
variable "conformance_pack_names" {
description = "A list of conformance pack names to be deployed"
type = list(string)
}
## Aggregator Variables ##
variable "aggregation_type" {
description = "Aggregation Type"
type = string
validation {
condition = contains([
"account", "organization"
], var.aggregation_type)
error_message = "Valid values for var: account or organization."
}
}