-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
71 lines (56 loc) · 2.87 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# ---------------------------------------------------------------------------------------------------------------------
# Security Group
# ---------------------------------------------------------------------------------------------------------------------
output "security_group_arn" {
value = try(aws_security_group.this[0].arn, "")
description = "ARN of the Security Group."
}
output "security_group_id" {
value = try(aws_security_group.this[0].id, "")
description = "ID of the Security Group."
}
# ---------------------------------------------------------------------------------------------------------------------
# Subnet Group
# ---------------------------------------------------------------------------------------------------------------------
output "subnet_group_id" {
value = try(aws_elasticache_subnet_group.this[0].id, "")
description = "ID of the Subnet Group."
}
output "subnet_group_subnet_ids" {
value = try(aws_elasticache_subnet_group.this[0].subnet_ids, "")
description = "ID of the Subnet Group."
}
# ---------------------------------------------------------------------------------------------------------------------
# Parameter Group
# ---------------------------------------------------------------------------------------------------------------------
output "parameter_group_arn" {
value = try(aws_elasticache_parameter_group.this[0].arn, "")
description = "ARN of the Parameter Group."
}
output "parameter_group_id" {
value = try(aws_elasticache_parameter_group.this[0].id, "")
description = "ID of the Parameter Group."
}
# ---------------------------------------------------------------------------------------------------------------------
# Replication Group
# ---------------------------------------------------------------------------------------------------------------------
output "replication_group_arn" {
value = try(aws_elasticache_replication_group.this[0].arn, "")
description = "ARN of the Replication Group."
}
output "replication_group_id" {
value = try(aws_elasticache_replication_group.this[0].id, "")
description = "ID of the Replication Group."
}
output "replication_group_cluster_mode_enabled" {
value = try(aws_elasticache_replication_group.this[0].cluster_enabled, "")
description = "Indicates if cluster mode is enabled."
}
output "replication_group_endpoint_address" {
value = var.cluster_mode_enabled ? aws_elasticache_replication_group.this[0].configuration_endpoint_address : aws_elasticache_replication_group.this[0].primary_endpoint_address
description = "Address of the replication group endpoint."
}
output "replication_group_reader_endpoint_address" {
value = var.cluster_mode_enabled ? "" : aws_elasticache_replication_group.this[0].reader_endpoint_address
description = "Address of the endpoint for the reader node in the replication group."
}