From 56adf13ba0846db530b0b7854844c9f6ca6a4c8f Mon Sep 17 00:00:00 2001 From: Maurizio Branca Date: Mon, 7 Aug 2017 17:39:21 +0200 Subject: [PATCH] Add more outputs to Redis cluster module The module now exports the following attributes: - configuration_endpoint_address - id (new) - primary_endpoint_address (new) - port (new) --- .../data-stores/elasticache-redis-cluster/outputs.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/data-stores/elasticache-redis-cluster/outputs.tf b/modules/data-stores/elasticache-redis-cluster/outputs.tf index af4d0cf..76f2a98 100644 --- a/modules/data-stores/elasticache-redis-cluster/outputs.tf +++ b/modules/data-stores/elasticache-redis-cluster/outputs.tf @@ -3,6 +3,18 @@ * Outputs. */ +output "id" { + value = "${aws_elasticache_replication_group.redis_replication_group.id}" +} + output "configuration_endpoint_address" { value = "${aws_elasticache_replication_group.redis_replication_group.configuration_endpoint_address}" } + +output "primary_endpoint_address" { + value = "${aws_elasticache_replication_group.redis_replication_group.primary_endpoint_address}" +} + +output "port" { + value = "${aws_elasticache_replication_group.redis_replication_group.port}" +}