Skip to content

Commit c1ae001

Browse files
authored
Update outputs + docs (#9)
1 parent 94258bb commit c1ae001

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.
77

88

99

10+
<a name="1.3.0"></a>
11+
## [1.3.0] - 2020-11-10
12+
13+
- Add support for clustered mode and upgrade fixes ([#8](https://github.com/umotif-public/terraform-aws-elasticache-redis/issues/8))
14+
15+
1016
<a name="1.2.0"></a>
1117
## [1.2.0] - 2020-11-09
1218

@@ -53,7 +59,8 @@ All notable changes to this project will be documented in this file.
5359
- Initial commit of docs
5460

5561

56-
[Unreleased]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/1.2.0...HEAD
62+
[Unreleased]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/1.3.0...HEAD
63+
[1.3.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/1.2.0...1.3.0
5764
[1.2.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/1.1.1...1.2.0
5865
[1.1.1]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/1.1.0...1.1.1
5966
[1.1.0]: https://github.com/umotif-public/terraform-aws-elasticache-redis/compare/1.0.3...1.1.0

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Terraform 0.12. Pin module version to `~> v1.0`. Submit pull-requests to `master
1111
```hcl
1212
module "redis" {
1313
source = "umotif-public/elasticache-redis/aws"
14-
version = "~> 1.0.0"
14+
version = "~> 1.3.0"
1515
1616
name_prefix = "core-example"
1717
number_cache_clusters = 2
@@ -117,8 +117,9 @@ Module managed by [Marcin Cuber](https://github.com/marcincuber) [linkedin](http
117117

118118
| Name | Description |
119119
|------|-------------|
120-
| elasticache\_auth\_token | The Redis Auth Token |
120+
| elasticache\_auth\_token | The Redis Auth Token. |
121121
| elasticache\_parameter\_group\_id | The ElastiCache parameter group name. |
122+
| elasticache\_port | The Redis port. |
122123
| elasticache\_replication\_group\_id | The ID of the ElastiCache Replication Group. |
123124
| elasticache\_replication\_group\_member\_clusters | The identifiers of all the nodes that are part of this replication group. |
124125
| elasticache\_replication\_group\_primary\_endpoint\_address | The address of the endpoint for the primary node in the replication group. |

outputs.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ output "elasticache_replication_group_id" {
44
}
55

66
output "elasticache_replication_group_primary_endpoint_address" {
7-
value = aws_elasticache_replication_group.redis.primary_endpoint_address
7+
value = var.cluster_mode_enabled ? aws_elasticache_replication_group.redis.configuration_endpoint_address : aws_elasticache_replication_group.redis.primary_endpoint_address
88
description = "The address of the endpoint for the primary node in the replication group."
99
}
1010

@@ -59,6 +59,11 @@ output "security_group_egress" {
5959
}
6060

6161
output "elasticache_auth_token" {
62-
description = "The Redis Auth Token"
62+
description = "The Redis Auth Token."
6363
value = aws_elasticache_replication_group.redis.auth_token
6464
}
65+
66+
output "elasticache_port" {
67+
description = "The Redis port."
68+
value = aws_elasticache_replication_group.redis.port
69+
}

0 commit comments

Comments
 (0)