forked from terraform-aws-modules/terraform-aws-memory-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
95 lines (76 loc) · 3.03 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
################################################################################
# Cluster
################################################################################
output "cluster_id" {
description = "Cluster name"
value = try(aws_memorydb_cluster.this[0].id, "")
}
output "cluster_arn" {
description = "The ARN of the cluster"
value = try(aws_memorydb_cluster.this[0].arn, "")
}
output "cluster_endpoint_address" {
description = "DNS hostname of the cluster configuration endpoint"
value = try(aws_memorydb_cluster.this[0].cluster_endpoint[0].address, "")
}
output "cluster_endpoint_port" {
description = "Port number that the cluster configuration endpoint is listening on"
value = try(aws_memorydb_cluster.this[0].cluster_endpoint[0].port, "")
}
output "cluster_engine_patch_version" {
description = "Patch version number of the Redis engine used by the cluster"
value = try(aws_memorydb_cluster.this[0].engine_patch_version, "")
}
output "cluster_shards" {
description = "Set of shards in this cluster"
value = try(aws_memorydb_cluster.this[0].shards, [])
}
################################################################################
# User(s)
################################################################################
output "users" {
description = "Map of attributes for the users created"
value = aws_memorydb_user.this
sensitive = true
}
################################################################################
# ACL
################################################################################
output "acl_id" {
description = "Name of the ACL"
value = try(aws_memorydb_acl.this[0].id, "")
}
output "acl_arn" {
description = "The ARN of the ACL"
value = try(aws_memorydb_acl.this[0].arn, "")
}
output "acl_minimum_engine_version" {
description = "The minimum engine version supported by the ACL"
value = try(aws_memorydb_acl.this[0].minimum_engine_version, "")
}
################################################################################
# Parameter Group
################################################################################
output "parameter_group_id" {
description = "Name of the parameter group"
value = try(aws_memorydb_parameter_group.this[0].id, "")
}
output "parameter_group_arn" {
description = "The ARN of the parameter group"
value = try(aws_memorydb_parameter_group.this[0].arn, "")
}
################################################################################
# Subnet Group
################################################################################
output "subnet_group_id" {
description = "Name of the subnet group"
value = try(aws_memorydb_subnet_group.this[0].id, "")
}
output "subnet_group_arn" {
description = "ARN of the subnet group"
value = try(aws_memorydb_subnet_group.this[0].arn, "")
}
output "subnet_group_vpc_id" {
description = "The VPC in which the subnet group exists"
value = try(aws_memorydb_subnet_group.this[0].vpc_id, "")
}