File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ Available targets:
107
107
| name | Name | string | ` redis ` | no |
108
108
| namespace | Namespace | string | ` global ` | no |
109
109
| notification_topic_arn | Notification topic arn | string | `` | no |
110
+ | parameter | A list of Redis parameters to apply. Note that parameters may differ from one Redis family to another | list | ` <list> ` | no |
110
111
| port | Redis port | string | ` 6379 ` | no |
111
112
| security_groups | AWS security group ids | list | ` <list> ` | no |
112
113
| stage | Stage | string | ` default ` | no |
Original file line number Diff line number Diff line change 22
22
| name | Name | string | ` redis ` | no |
23
23
| namespace | Namespace | string | ` global ` | no |
24
24
| notification_topic_arn | Notification topic arn | string | `` | no |
25
+ | parameter | A list of Redis parameters to apply. Note that parameters may differ from one Redis family to another | list | ` <list> ` | no |
25
26
| port | Redis port | string | ` 6379 ` | no |
26
27
| security_groups | AWS security group ids | list | ` <list> ` | no |
27
28
| stage | Stage | string | ` default ` | no |
Original file line number Diff line number Diff line change @@ -66,4 +66,11 @@ module "redis" {
66
66
alarm_cpu_threshold_percent = " 75"
67
67
alarm_memory_threshold_bytes = " 10000000"
68
68
at_rest_encryption_enabled = " true"
69
+
70
+ parameter = [
71
+ {
72
+ name = " notify-keyspace-events"
73
+ value = " lK"
74
+ },
75
+ ]
69
76
}
Original file line number Diff line number Diff line change 1
1
# Define composite variables for resources
2
2
module "label" {
3
- source = " git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3 .3"
3
+ source = " git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.5 .3"
4
4
enabled = " ${ var . enabled } "
5
5
namespace = " ${ var . namespace } "
6
6
name = " ${ var . name } "
@@ -42,9 +42,10 @@ resource "aws_elasticache_subnet_group" "default" {
42
42
}
43
43
44
44
resource "aws_elasticache_parameter_group" "default" {
45
- count = " ${ var . enabled == " true" ? 1 : 0 } "
46
- name = " ${ module . label . id } "
47
- family = " ${ var . family } "
45
+ count = " ${ var . enabled == " true" ? 1 : 0 } "
46
+ name = " ${ module . label . id } "
47
+ family = " ${ var . family } "
48
+ parameter = " ${ var . parameter } "
48
49
}
49
50
50
51
resource "aws_elasticache_replication_group" "default" {
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ variable "family" {
60
60
description = " Redis family "
61
61
}
62
62
63
+ variable "parameter" {
64
+ type = " list"
65
+ default = []
66
+ description = " A list of Redis parameters to apply. Note that parameters may differ from one Redis family to another"
67
+ }
68
+
63
69
variable "engine_version" {
64
70
default = " 4.0.10"
65
71
description = " Redis engine version"
You can’t perform that action at this time.
0 commit comments