forked from terraform-aws-modules/terraform-aws-elasticache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
142 lines (113 loc) · 6.22 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
################################################################################
# Cluster
################################################################################
output "cluster_arn" {
description = "The ARN of the ElastiCache Cluster"
value = try(aws_elasticache_cluster.this[0].arn, null)
}
output "cluster_engine_version_actual" {
description = "Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine"
value = try(aws_elasticache_cluster.this[0].engine_version_actual, null)
}
output "cluster_cache_nodes" {
description = "List of node objects including `id`, `address`, `port` and `availability_zone`"
value = try(aws_elasticache_cluster.this[0].cache_nodes, null)
}
output "cluster_address" {
description = "(Memcached only) DNS name of the cache cluster without the port appended"
value = try(aws_elasticache_cluster.this[0].cluster_address, null)
}
output "cluster_configuration_endpoint" {
description = "(Memcached only) Configuration endpoint to allow host discovery"
value = try(aws_elasticache_cluster.this[0].configuration_endpoint, null)
}
################################################################################
# Replication Group
################################################################################
output "replication_group_arn" {
description = "ARN of the created ElastiCache Replication Group"
value = try(aws_elasticache_replication_group.this[0].arn, aws_elasticache_replication_group.global[0].arn, null)
}
output "replication_group_engine_version_actual" {
description = "Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine"
value = try(aws_elasticache_replication_group.this[0].engine_version_actual, aws_elasticache_replication_group.global[0].engine_version_actual, null)
}
output "replication_group_coniguration_endpoint_address" {
description = "Address of the replication group configuration endpoint when cluster mode is enabled"
value = try(aws_elasticache_replication_group.this[0].configuration_endpoint_address, aws_elasticache_replication_group.global[0].configuration_endpoint_address, null)
}
output "replication_group_id" {
description = "ID of the ElastiCache Replication Group"
value = try(aws_elasticache_replication_group.this[0].id, aws_elasticache_replication_group.global[0].id, null)
}
output "replication_group_member_clusters" {
description = "Identifiers of all the nodes that are part of this replication group"
value = try(aws_elasticache_replication_group.this[0].member_clusters, aws_elasticache_replication_group.global[0].member_clusters, null)
}
output "replication_group_primary_endpoint_address" {
description = "Address of the endpoint for the primary node in the replication group, if the cluster mode is disabled"
value = try(aws_elasticache_replication_group.this[0].primary_endpoint_address, aws_elasticache_replication_group.global[0].primary_endpoint_address, null)
}
output "replication_group_reader_endpoint_address" {
description = "Address of the endpoint for the reader node in the replication group, if the cluster mode is disabled"
value = try(aws_elasticache_replication_group.this[0].reader_endpoint_address, aws_elasticache_replication_group.global[0].reader_endpoint_address, null)
}
################################################################################
# Global Replication Group
################################################################################
output "global_replication_group_id" {
description = "ID of the ElastiCache Global Replication Group"
value = try(aws_elasticache_global_replication_group.this[0].id, null)
}
output "global_replication_group_arn" {
description = "ARN of the created ElastiCache Global Replication Group"
value = try(aws_elasticache_global_replication_group.this[0].arn, null)
}
output "global_replication_group_engine_version_actual" {
description = "The full version number of the cache engine running on the members of this global replication group"
value = try(aws_elasticache_global_replication_group.this[0].engine_version_actual, null)
}
output "global_replication_group_node_groups" {
description = "Set of node groups (shards) on the global replication group"
value = try(aws_elasticache_global_replication_group.this[0].global_node_groups, null)
}
################################################################################
# CloudWatch Log Group
################################################################################
output "cloudwatch_log_group_name" {
description = "Name of cloudwatch log group created"
value = try(aws_cloudwatch_log_group.this[0].name, null)
}
output "cloudwatch_log_group_arn" {
description = "Arn of cloudwatch log group created"
value = try(aws_cloudwatch_log_group.this[0].arn, null)
}
################################################################################
# Parameter Group
################################################################################
output "parameter_group_arn" {
description = "The AWS ARN associated with the parameter group"
value = try(aws_elasticache_parameter_group.this[0].arn, null)
}
output "parameter_group_id" {
description = "The ElastiCache parameter group name"
value = try(aws_elasticache_parameter_group.this[0].id, null)
}
################################################################################
# Subnet Group
################################################################################
output "subnet_group_name" {
description = "The ElastiCache subnet group name"
value = try(aws_elasticache_subnet_group.this[0].name, null)
}
################################################################################
# Security Group
################################################################################
output "security_group_arn" {
description = "Amazon Resource Name (ARN) of the security group"
value = try(aws_security_group.this[0].arn, null)
}
output "security_group_id" {
description = "ID of the security group"
value = try(aws_security_group.this[0].id, null)
}