forked from cloudposse/terraform-aws-elasticache-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
54 lines (44 loc) · 1.79 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
output "id" {
value = join("", aws_elasticache_replication_group.default[*].id)
description = "Redis cluster ID"
}
output "security_group_id" {
value = module.aws_security_group.id
description = "The ID of the created security group"
}
output "security_group_name" {
value = module.aws_security_group.name
description = "The name of the created security group"
}
output "port" {
value = var.port
description = "Redis port"
}
output "endpoint" {
value = var.cluster_mode_enabled ? join("", compact(aws_elasticache_replication_group.default[*].configuration_endpoint_address)) : join("", compact(aws_elasticache_replication_group.default[*].primary_endpoint_address))
description = "Redis primary or configuration endpoint, whichever is appropriate for the given cluster mode"
}
output "reader_endpoint_address" {
value = join("", compact(aws_elasticache_replication_group.default[*].reader_endpoint_address))
description = "The address of the endpoint for the reader node in the replication group, if the cluster mode is disabled."
}
output "member_clusters" {
value = aws_elasticache_replication_group.default[*].member_clusters
description = "Redis cluster members"
}
output "host" {
value = module.dns.hostname
description = "Redis hostname"
}
output "arn" {
value = join("", aws_elasticache_replication_group.default[*].arn)
description = "Elasticache Replication Group ARN"
}
output "engine_version_actual" {
value = join("", aws_elasticache_replication_group.default[*].engine_version_actual)
description = "The running version of the cache engine"
}
output "cluster_enabled" {
value = join("", aws_elasticache_replication_group.default[*].cluster_enabled)
description = "Indicates if cluster mode is enabled"
}