-
Notifications
You must be signed in to change notification settings - Fork 7
/
outputs.tf
39 lines (32 loc) · 1.62 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
output "elastic_cache_redis_primary_endpoint_address" {
description = "Primary endpoint address of redis"
value = var.cluster_mode_enabled ? join("", aws_elasticache_replication_group.redis[*].configuration_endpoint_address) : join("", aws_elasticache_replication_group.redis[*].primary_endpoint_address)
}
output "elastic_cache_redis_subnet_group_name" {
description = "Subnet group name of the elasticache_redis cluster"
value = aws_elasticache_subnet_group.elasticache.name
}
output "elastic_cache_redis_cluster_id" {
description = "ID of the elasticache-redis cluster"
value = aws_elasticache_replication_group.redis.id
}
output "elastic_cache_redis_port" {
description = "Port number of Redis"
value = var.port
}
output "reader_endpoint_address" {
value = join("", compact(aws_elasticache_replication_group.redis[*].reader_endpoint_address))
description = "The address of the endpoint for the reader node in the replication group, if the cluster mode is disabled."
}
output "elastic_cache_redis_security_group" {
description = "The security group ID of the cluster"
value = module.security_group_redis.security_group_id
}
output "auth_token_password" {
description = "Elasticache-redis auth token password(this password may be old, because Terraform doesn't track it after initial creation)"
value = var.transit_encryption_enabled ? nonsensitive(random_password.password[0].result) : null
}
output "elastic_cache_redis_member_clusters" {
description = "ID of the elasticache-redis cluster"
value = flatten(aws_elasticache_replication_group.redis.member_clusters)
}