File tree Expand file tree Collapse file tree 5 files changed +18
-5
lines changed
examples/redis-clustered-mode Expand file tree Collapse file tree 5 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ All notable changes to this project will be documented in this file.
16
16
- Upgrade module to be compatible with AWS Provider 4.0.0 ([ #21 ] ( https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/21 ) )
17
17
18
18
19
+ <a name =" 3.0.0 " ></a >
20
+ ## [ 3.0.0] - 2022-03-09
21
+
22
+ - Upgrade module to be compatible with AWS Provider 4.0.0 ([ #21 ] ( https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/21 ) )
23
+
24
+
19
25
<a name =" 2.2.0 " ></a >
20
26
## [ 2.2.0] - 2021-08-11
21
27
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ A Terraform module to create an AWS Redis ElastiCache cluster
16
16
``` hcl
17
17
module "redis" {
18
18
source = "umotif-public/elasticache-redis/aws"
19
- version = "~> v3 .0"
19
+ version = "~> 3.0 .0"
20
20
21
21
name_prefix = "core-example"
22
- number_cache_clusters = 2
22
+ num_cache_cluster = 2
23
23
node_type = "cache.t3.small"
24
24
25
25
engine_version = "6.x"
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module "redis" {
28
28
29
29
cluster_mode_enabled = true
30
30
replicas_per_node_group = 1
31
- num_node_groups = 1
31
+ num_node_groups = 2
32
32
33
33
engine_version = " 6.x"
34
34
port = 6379
Original file line number Diff line number Diff line change
1
+ output "primary_endpoint" {
2
+ value = module. redis . elasticache_replication_group_primary_endpoint_address
3
+ }
4
+
5
+ output "reader_endpoint" {
6
+ value = module. redis . elasticache_replication_group_reader_endpoint_address
7
+ }
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ output "elasticache_replication_group_id" {
9
9
}
10
10
11
11
output "elasticache_replication_group_primary_endpoint_address" {
12
- value = var. num_node_groups > 1 ? aws_elasticache_replication_group. redis . configuration_endpoint_address : aws_elasticache_replication_group. redis . primary_endpoint_address
12
+ value = var. num_node_groups > 0 ? aws_elasticache_replication_group. redis . configuration_endpoint_address : aws_elasticache_replication_group. redis . primary_endpoint_address
13
13
description = " The address of the endpoint for the primary node in the replication group."
14
14
}
15
15
16
16
output "elasticache_replication_group_reader_endpoint_address" {
17
- value = var. num_node_groups > 1 ? aws_elasticache_replication_group. redis . configuration_endpoint_address : aws_elasticache_replication_group. redis . reader_endpoint_address
17
+ value = var. num_node_groups > 0 ? aws_elasticache_replication_group. redis . configuration_endpoint_address : aws_elasticache_replication_group. redis . reader_endpoint_address
18
18
description = " The address of the endpoint for the reader node in the replication group."
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments