Skip to content

Commit

Permalink
added arn outputs for redis/memcache
Browse files Browse the repository at this point in the history
  • Loading branch information
bentastic27 committed Dec 2, 2022
1 parent 1bc1c49 commit 72c7b9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ output "redis_endpoint" {
description = "Redis endpoint address."
}

output "redis_arn" {
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 : ""
description = "Redis arn"
}

output "memcached_endpoint" {
value = var.cluster_enabled ? join("", aws_elasticache_cluster.default.*.configuration_endpoint) : ""
description = "Memcached endpoint address."
}

output "memcached_arn" {
value = length(aws_elasticache_cluster.default) > 0 ? aws_elasticache_cluster.default[0].arn : ""
description = "Memcached arn"
}

0 comments on commit 72c7b9f

Please sign in to comment.