You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
50
44
## Inputs
51
45
52
46
| Name | Description | Type | Default | Required |
53
47
|------|-------------|:----:|:-----:|:-----:|
54
-
| allowed\_cidr | A list of Security Group ID's to allow access to. | list |`[ "127.0.0.1/32" ]`| no |
55
-
| allowed\_security\_groups | A list of Security Group ID's to allow access to. | list |`[]`| no |
56
-
| apply\_immediately | Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. | string |`"false"`| no |
48
+
| alarm\_actions || list | n/a | yes |
49
+
| alarm\_cpu\_threshold | These vars would be used by cloudwatch.tf and should be uncommented if we decide to use them. | string |`"75"`| no |
50
+
| alarm\_memory\_threshold || string |`"10000000"`| no |
51
+
| allowed\_cidr | A list of Security Group ID's to allow access to. | list(string) |`[ "127.0.0.1/32" ]`| no |
52
+
| allowed\_security\_groups | A list of Security Group ID's to allow access to. | list(string) |`[]`| no |
53
+
| apply\_immediately | Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. | bool |`"false"`| no |
57
54
| env | env to deploy into, should typically dev/staging/prod | string | n/a | yes |
58
55
| name | Name for the Redis replication group i.e. UserObject | string | n/a | yes |
59
56
| redis\_clusters | Number of Redis cache clusters (nodes) to create | string | n/a | yes |
60
-
| redis\_failover ||string|`"false"`| no |
57
+
| redis\_failover ||bool|`"false"`| no |
61
58
| redis\_maintenance\_window | Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period | string |`"fri:08:00-fri:09:00"`| no |
62
59
| redis\_node\_type | Instance type to use for creating the Redis cache clusters | string |`"cache.m3.medium"`| no |
63
-
| redis\_parameters | additional parameters modifyed in parameter group | list |`[]`| no |
64
-
| redis\_port ||string|`"6379"`| no |
65
-
| redis\_snapshot\_retention\_limit | The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes |string|`"0"`| no |
60
+
| redis\_parameters | additional parameters modifyed in parameter group | list(map(any))|`[]`| no |
61
+
| redis\_port ||number|`"6379"`| no |
62
+
| redis\_snapshot\_retention\_limit | The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes |number|`"0"`| no |
66
63
| redis\_snapshot\_window | 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 | string |`"06:30-07:30"`| no |
67
64
| redis\_version | Redis version to use, defaults to 3.2.10 | string |`"3.2.10"`| no |
68
-
| subnets | List of VPC Subnet IDs for the cache subnet group | list | n/a | yes |
69
-
| tags | Tags for redis nodes | map |`{}`| no |
65
+
| subnets | List of VPC Subnet IDs for the cache subnet group | list(string)| n/a | yes |
66
+
| tags | Tags for redis nodes | map(string)|`{}`| no |
Copy file name to clipboardExpand all lines: variables.tf
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,43 +16,50 @@ variable "alarm_actions" {
16
16
17
17
variable"apply_immediately" {
18
18
description="Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false."
19
-
default="false"
19
+
type=bool
20
+
default=false
20
21
}
21
22
22
23
variable"allowed_cidr" {
24
+
description="A list of Security Group ID's to allow access to."
23
25
type=list(string)
24
26
default=["127.0.0.1/32"]
25
-
description="A list of Security Group ID's to allow access to."
26
27
}
27
28
28
29
variable"allowed_security_groups" {
30
+
description="A list of Security Group ID's to allow access to."
29
31
type=list(string)
30
32
default=[]
31
-
description="A list of Security Group ID's to allow access to."
32
33
}
33
34
34
35
variable"env" {
35
36
description="env to deploy into, should typically dev/staging/prod"
37
+
type=string
36
38
}
37
39
38
40
variable"name" {
39
41
description="Name for the Redis replication group i.e. UserObject"
42
+
type=string
40
43
}
41
44
42
45
variable"redis_clusters" {
43
46
description="Number of Redis cache clusters (nodes) to create"
47
+
type=string
44
48
}
45
49
46
50
variable"redis_failover" {
51
+
type=bool
47
52
default=false
48
53
}
49
54
50
55
variable"redis_node_type" {
51
56
description="Instance type to use for creating the Redis cache clusters"
57
+
type=string
52
58
default="cache.m3.medium"
53
59
}
54
60
55
61
variable"redis_port" {
62
+
type=number
56
63
default=6379
57
64
}
58
65
@@ -64,36 +71,41 @@ variable "subnets" {
64
71
# might want a map
65
72
variable"redis_version" {
66
73
description="Redis version to use, defaults to 3.2.10"
74
+
type=string
67
75
default="3.2.10"
68
76
}
69
77
70
78
variable"vpc_id" {
71
79
description="VPC ID"
80
+
type=string
72
81
}
73
82
74
83
variable"redis_parameters" {
75
-
type=list(object({ name =string, value =string }))
76
84
description="additional parameters modifyed in parameter group"
85
+
type=list(map(any))
77
86
default=[]
78
87
}
79
88
80
89
variable"redis_maintenance_window" {
81
90
description="Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period"
91
+
type=string
82
92
default="fri:08:00-fri:09:00"
83
93
}
84
94
85
95
variable"redis_snapshot_window" {
86
96
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"
97
+
type=string
87
98
default="06:30-07:30"
88
99
}
89
100
90
101
variable"redis_snapshot_retention_limit" {
91
102
description="The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes"
0 commit comments