-
Notifications
You must be signed in to change notification settings - Fork 2
/
_variables.tf
123 lines (99 loc) · 3 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
variable "name" {
description = "Name of this Redis"
type = string
}
variable "automatic_failover_enabled" {
type = bool
default = false
}
variable "at_rest_encryption_enabled" {
type = bool
default = true
}
variable "transit_encryption_enabled" {
default = false
}
# variable "auth_token" {
# default = ""
# }
variable "multi_az_enabled" {
default = false
}
variable "engine" {
type = string
}
variable "engine_version" {
type = string
}
variable "port" {
description = "Port number for this Redis"
type = number
default = 6379
}
variable "kms_key_id" {
description = "KMS Key ARN to use a CMK instead of default shared key"
default = null
}
variable "maintenance_window" {
description = "Specifies the weekly time range for when maintenance on the cache cluster is performed"
default = "sun:05:00-sun:07:00"
}
variable "node_type" {
description = "The instance class to be used"
type = string
}
variable "notification_topic_arn" {
default = ""
}
variable "num_cache_clusters" {
description = "The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2"
default = 1
}
variable "snapshot_retention_limit" {
description = "The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them"
default = 0
}
variable "snapshot_window" {
description = "The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period"
default = "03:00-04:00"
}
variable "subnet_group_name" {
description = "The name of the cache subnet group to be used for the replication group"
type = string
}
variable "parameter_group_name" {
description = "The name of the parameter group to associate with this replication group"
type = string
default = null
}
variable "environment_name" {
description = "Environment name to use as a prefix to this Redis"
type = string
}
variable "allow_security_group_ids" {
description = "List of Security Group IDs to allow connection to this Redis"
type = list(string)
default = []
}
variable "allow_cidrs" {
description = "List of CIDRs to allow connection to this DB"
type = list(string)
default = []
}
variable "create_subnet_group" {
description = "Create a subnet group"
default = false
}
variable "subnet_ids" {
description = "List of Subnet IDs for the RDS Subnet Group"
type = list(any)
default = []
}
variable "vpc_id" {
type = string
}
variable "user_group_ids" {
description = "(Optional) User Group ID to associate with the replication group. Only a maximum of one (1) user group ID is valid. NOTE: This argument is a set because the AWS specification allows for multiple IDs. However, in practice, AWS only allows a maximum size of one."
type = set(string)
default = null
}