Skip to content

Commit 1a5ae7a

Browse files
authored
Merge pull request #31 from bentastic27/add-arn-outputs
added arn outputs for redis/memcache
2 parents 1bc1c49 + 72c7b9f commit 1a5ae7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@ output "redis_endpoint" {
2121
description = "Redis endpoint address."
2222
}
2323

24+
output "redis_arn" {
25+
value = length(aws_elasticache_replication_group.cluster) > 0 ? aws_elasticache_replication_group.cluster[0].arn : length(aws_elasticache_replication_group.default) > 0 ? aws_elasticache_replication_group.default[0].arn : ""
26+
description = "Redis arn"
27+
}
28+
2429
output "memcached_endpoint" {
2530
value = var.cluster_enabled ? join("", aws_elasticache_cluster.default.*.configuration_endpoint) : ""
2631
description = "Memcached endpoint address."
2732
}
33+
34+
output "memcached_arn" {
35+
value = length(aws_elasticache_cluster.default) > 0 ? aws_elasticache_cluster.default[0].arn : ""
36+
description = "Memcached arn"
37+
}

0 commit comments

Comments
 (0)