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
@@ -74,17 +71,16 @@ Here are some examples of how you can use this module in your inventory structur
74
71
module "redis" {
75
72
source = "clouddrove/elasticache/aws
76
73
version = "1.3.0"
77
-
74
+
78
75
name = "redis"
79
76
environment = "test"
80
77
label_order = ["name", "environment"]
81
-
78
+
82
79
vpc_id = module.vpc.vpc_id
83
80
allowed_ip = [module.vpc.vpc_cidr_block]
84
81
allowed_ports = [6379]
85
-
82
+
86
83
cluster_replication_enabled = true
87
-
replication_enabled = true
88
84
engine = "redis"
89
85
engine_version = "7.0"
90
86
parameter_group_name = "default.redis7"
@@ -95,41 +91,47 @@ Here are some examples of how you can use this module in your inventory structur
95
91
automatic_failover_enabled = false
96
92
multi_az_enabled = false
97
93
num_cache_clusters = 1
98
-
replicas_per_node_group = 1
99
94
retention_in_days = 0
100
95
snapshot_retention_limit = 7
101
-
96
+
102
97
log_delivery_configuration = [
103
-
{
104
-
destination_type = "cloudwatch-logs"
105
-
log_format = "json"
106
-
log_type = "slow-log"
107
-
},
108
-
{
109
-
destination_type = "cloudwatch-logs"
110
-
log_format = "json"
111
-
log_type = "engine-log"
112
-
}
98
+
{
99
+
destination_type = "cloudwatch-logs"
100
+
log_format = "json"
101
+
log_type = "slow-log"
102
+
},
103
+
{
104
+
destination_type = "cloudwatch-logs"
105
+
log_format = "json"
106
+
log_type = "engine-log"
107
+
}
113
108
]
114
109
extra_tags = {
115
-
Application = "CloudDrove"
110
+
Application = "CloudDrove"
116
111
}
112
+
route53_record_enabled = true
113
+
ssm_parameter_endpoint_enabled = true
114
+
dns_record_name = "prod"
115
+
route53_ttl = "300"
116
+
route53_type = "CNAME"
117
+
route53_zone_id = "Z017xxxxDLxxx0GH04"
118
+
}
117
119
118
120
```
119
121
### Redis Cluster
120
122
```hcl
121
123
module "redis-cluster" {
122
124
source = "clouddrove/elasticache/aws
123
125
version = "1.3.0"
124
-
126
+
125
127
name = "redis-cluster"
126
128
environment = "test"
127
129
label_order = ["environment", "name"]
128
-
130
+
129
131
vpc_id = module.vpc.vpc_id
130
132
allowed_ip = [module.vpc.vpc_cidr_block]
131
133
allowed_ports = [6379]
132
-
134
+
133
135
cluster_replication_enabled = true
134
136
engine = "redis"
135
137
engine_version = "7.0"
@@ -138,42 +140,59 @@ Here are some examples of how you can use this module in your inventory structur
138
140
node_type = "cache.t2.micro"
139
141
subnet_ids = module.subnets.public_subnet_id
140
142
availability_zones = ["eu-west-1a", "eu-west-1b"]
141
-
replicas_per_node_group = 2
142
143
num_cache_nodes = 1
143
144
snapshot_retention_limit = 7
144
145
automatic_failover_enabled = true
145
146
extra_tags = {
146
-
Application = "CloudDrove"
147
+
Application = "CloudDrove"
147
148
}
149
+
150
+
route53_record_enabled = false
151
+
ssm_parameter_endpoint_enabled = false
152
+
dns_record_name = "prod"
153
+
route53_ttl = "300"
154
+
route53_type = "CNAME"
155
+
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx"
156
+
}
148
157
```
149
158
### Memcache
150
159
```hcl
151
160
module "memcached" {
152
161
source = "clouddrove/elasticache/aws
153
162
version = "1.3.0"
154
-
163
+
155
164
name = "memcached"
156
165
environment = "test"
157
166
label_order = ["name", "environment"]
158
-
167
+
159
168
vpc_id = module.vpc.vpc_id
160
169
allowed_ip = [module.vpc.vpc_cidr_block]
161
170
allowed_ports = [11211]
162
-
163
-
cluster_enabled = true
164
-
engine = "memcached"
165
-
engine_version = "1.6.17"
166
-
family = "memcached1.5"
167
-
parameter_group_name = ""
168
-
az_mode = "cross-az"
169
-
port = 11211
170
-
node_type = "cache.t2.micro"
171
-
num_cache_nodes = 2
172
-
subnet_ids = module.subnets.public_subnet_id
173
-
availability_zones = ["eu-west-1a", "eu-west-1b"]
171
+
172
+
cluster_enabled = true
173
+
memcached_ssm_parameter_endpoint_enabled = true
174
+
memcached_route53_record_enabled = true
175
+
engine = "memcached"
176
+
engine_version = "1.6.17"
177
+
family = "memcached1.5"
178
+
parameter_group_name = ""
179
+
az_mode = "cross-az"
180
+
port = 11211
181
+
node_type = "cache.t2.micro"
182
+
num_cache_nodes = 2
183
+
subnet_ids = module.subnets.public_subnet_id
184
+
availability_zones = ["eu-west-1a", "eu-west-1b"]
174
185
extra_tags = {
175
-
Application = "CloudDrove"
186
+
Application = "CloudDrove"
176
187
}
188
+
route53_record_enabled = false
189
+
ssm_parameter_endpoint_enabled = false
190
+
dns_record_name = "prod"
191
+
route53_ttl = "300"
192
+
route53_type = "CNAME"
193
+
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx"
194
+
195
+
}
177
196
```
178
197
179
198
@@ -190,7 +209,6 @@ Here are some examples of how you can use this module in your inventory structur
190
209
| allowed\_ports | List of allowed ingress ports |`list(any)`|`[]`| no |
191
210
| apply\_immediately | Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. |`bool`|`false`| no |
192
211
| at\_rest\_encryption\_enabled | Enable encryption at rest. |`bool`|`true`| no |
193
-
| attributes | Additional attributes (e.g. `1`). |`list(any)`|`[]`| no |
194
212
| auth\_token | The password used to access a password protected server. Can be specified only if transit\_encryption\_enabled = true. |`string`|`null`| no |
195
213
| auto\_minor\_version\_upgrade | Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to true. |`bool`|`true`| no |
196
214
| automatic\_failover\_enabled | Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to false. |`bool`|`true`| no |
@@ -210,7 +228,6 @@ Here are some examples of how you can use this module in your inventory structur
| existing\_sg\_id | Provide existing security group id for updating existing rule |`string`|`null`| no |
212
230
| extra\_tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). |`map(string)`|`{}`| no |
213
-
| family | (Required) The family of the ElastiCache parameter group. |`string`|`""`| no |
214
231
| is\_enabled | Specifies whether the key is enabled. |`bool`|`true`| no |
215
232
| is\_external | enable to udated existing security Group |`bool`|`false`| no |
216
233
| key\_usage | Specifies the intended use of the key. Defaults to ENCRYPT\_DECRYPT, and only symmetric encryption and decryption are supported. |`string`|`"ENCRYPT_DECRYPT"`| no |
@@ -233,28 +250,24 @@ Here are some examples of how you can use this module in your inventory structur
233
250
| parameter\_group\_name | The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. |`string`|`"default.redis5.0"`| no |
234
251
| port | the port number on which each of the cache nodes will accept connections. |`string`|`""`| no |
235
252
| protocol | The protocol. If not icmp, tcp, udp, or all use the. |`string`|`"tcp"`| no |
236
-
| replicas\_per\_node\_group | Replicas per Shard. |`number`|`2`| no |
237
253
| replication\_group\_description | Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. |`string`|`"User-created description for the replication group."`| no |
238
-
| replication\_group\_id | The replication group identifier This parameter is stored as a lowercase string. |`string`|`""`| no |
239
254
| repository | Terraform current module repo |`string`|`"https://github.com/clouddrove/terraform-aws-elasticache"`| no |
240
255
| retention\_in\_days | Specifies the number of days you want to retain log events in the specified log group. |`number`|`0`| no |
241
256
| route53\_record\_enabled | Whether to create Route53 record set. |`bool`|`false`| no |
242
257
| route53\_ttl | (Required for non-alias records) The TTL of the record. |`string`|`""`| no |
243
258
| route53\_type | The record type. Valid values are A, AAAA, CAA, CNAME, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. |`string`|`""`| no |
244
259
| route53\_zone\_id | Zone ID. |`string`| n/a | yes |
245
-
| security\_group\_names | A list of cache security group names to associate with this replication group. |`any`|`null`| no |
260
+
| security\_group\_names | A list of cache security group names to associate with this replication group. |`list(string)`|`null`| no |
246
261
| sg\_description | The security group description. |`string`|`"Instance default security group (only egress access is allowed)."`| no |
247
262
| sg\_egress\_description | Description of the egress and ingress rule |`string`|`"Description of the rule."`| no |
248
263
| sg\_egress\_ipv6\_description | Description of the egress\_ipv6 rule |`string`|`"Description of the rule."`| no |
249
264
| sg\_ids | of the security group id. |`list(any)`|`[]`| no |
250
265
| sg\_ingress\_description | Description of the ingress rule |`string`|`"Description of the ingress rule use elasticache."`| no |
251
-
| snapshot\_arns | A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. |`any`|`null`| no |
266
+
| snapshot\_arns | A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. |`list(string)`|`null`| no |
252
267
| snapshot\_name | The name of a snapshot from which to restore data into the new node group. Changing the snapshot\_name forces a new resource. |`string`|`""`| no |
253
268
| snapshot\_retention\_limit | (Redis only) 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 |
254
269
| snapshot\_window | (Redis only) 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`|`null`| no |
255
-
| ssm\_paramete\_kms\_key\_id | KMS key ID or ARN for encrypting a SecureString. |`string`|`""`| no |
256
270
| ssm\_parameter\_description | SSM Parameters can be imported using. |`string`|`"Description of the parameter."`| no |
257
-
| ssm\_parameter\_enabled | Name of the parameter. |`bool`|`true`| no |
258
271
| ssm\_parameter\_endpoint\_enabled | Name of the parameter. |`bool`|`false`| no |
259
272
| ssm\_parameter\_type | Type of the parameter. |`string`|`"SecureString"`| no |
260
273
| subnet\_group\_description | Description for the cache subnet group. Defaults to `Managed by Terraform`. |`string`|`"The Description of the ElastiCache Subnet Group."`| no |
0 commit comments