forked from terraform-aws-modules/terraform-aws-rds-aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
109 lines (90 loc) · 3.4 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
# aws_db_subnet_group
output "db_subnet_group_name" {
description = "The db subnet group name"
value = local.db_subnet_group_name
}
# aws_rds_cluster
output "cluster_arn" {
description = "Amazon Resource Name (ARN) of cluster"
value = try(aws_rds_cluster.this[0].arn, "")
}
output "cluster_id" {
description = "The RDS Cluster Identifier"
value = try(aws_rds_cluster.this[0].id, "")
}
output "cluster_resource_id" {
description = "The RDS Cluster Resource ID"
value = try(aws_rds_cluster.this[0].cluster_resource_id, "")
}
output "cluster_members" {
description = "List of RDS Instances that are a part of this cluster"
value = try(aws_rds_cluster.this[0].cluster_members, "")
}
output "cluster_endpoint" {
description = "Writer endpoint for the cluster"
value = try(aws_rds_cluster.this[0].endpoint, "")
}
output "cluster_reader_endpoint" {
description = "A read-only endpoint for the cluster, automatically load-balanced across replicas"
value = try(aws_rds_cluster.this[0].reader_endpoint, "")
}
output "cluster_engine_version_actual" {
description = "The running version of the cluster database"
value = try(aws_rds_cluster.this[0].engine_version_actual, "")
}
# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output
output "cluster_database_name" {
description = "Name for an automatically created database on cluster creation"
value = var.database_name
}
output "cluster_port" {
description = "The database port"
value = try(aws_rds_cluster.this[0].port, "")
}
output "cluster_master_password" {
description = "The database master password"
value = try(aws_rds_cluster.this[0].master_password, "")
sensitive = true
}
output "cluster_master_username" {
description = "The database master username"
value = try(aws_rds_cluster.this[0].master_username, "")
sensitive = true
}
output "cluster_hosted_zone_id" {
description = "The Route53 Hosted Zone ID of the endpoint"
value = try(aws_rds_cluster.this[0].hosted_zone_id, "")
}
# aws_rds_cluster_instances
output "cluster_instances" {
description = "A map of cluster instances and their attributes"
value = aws_rds_cluster_instance.this
}
# aws_rds_cluster_endpoint
output "additional_cluster_endpoints" {
description = "A map of additional cluster endpoints and their attributes"
value = aws_rds_cluster_endpoint.this
}
# aws_rds_cluster_role_association
output "cluster_role_associations" {
description = "A map of IAM roles associated with the cluster and their attributes"
value = aws_rds_cluster_role_association.this
}
# Enhanced monitoring role
output "enhanced_monitoring_iam_role_name" {
description = "The name of the enhanced monitoring role"
value = try(aws_iam_role.rds_enhanced_monitoring[0].name, "")
}
output "enhanced_monitoring_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role"
value = try(aws_iam_role.rds_enhanced_monitoring[0].arn, "")
}
output "enhanced_monitoring_iam_role_unique_id" {
description = "Stable and unique string identifying the enhanced monitoring role"
value = try(aws_iam_role.rds_enhanced_monitoring[0].unique_id, "")
}
# aws_security_group
output "security_group_id" {
description = "The security group ID of the cluster"
value = local.rds_security_group_id
}