forked from terraform-aws-modules/terraform-aws-rds-aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
91 lines (75 loc) · 2.97 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
# aws_rds_cluster
output "rds_cluster_arn" {
description = "The ID of the cluster"
value = element(concat(aws_rds_cluster.this.*.arn, [""]), 0)
}
output "rds_cluster_id" {
description = "The ID of the cluster"
value = element(concat(aws_rds_cluster.this.*.id, [""]), 0)
}
output "rds_cluster_resource_id" {
description = "The Resource ID of the cluster"
value = element(concat(aws_rds_cluster.this.*.cluster_resource_id, [""]), 0)
}
output "rds_cluster_endpoint" {
description = "The cluster endpoint"
value = element(concat(aws_rds_cluster.this.*.endpoint, [""]), 0)
}
output "rds_cluster_engine_version" {
description = "The cluster engine version"
value = element(concat(aws_rds_cluster.this.*.engine_version, [""]), 0)
}
output "rds_cluster_reader_endpoint" {
description = "The cluster reader endpoint"
value = element(concat(aws_rds_cluster.this.*.reader_endpoint, [""]), 0)
}
# database_name is not set on `aws_rds_cluster` resource if it was not specified, so can't be used in output
output "rds_cluster_database_name" {
description = "Name for an automatically created database on cluster creation"
value = var.database_name
}
output "rds_cluster_master_password" {
description = "The master password"
value = element(concat(aws_rds_cluster.this.*.master_password, [""]), 0)
sensitive = true
}
output "rds_cluster_port" {
description = "The port"
value = element(concat(aws_rds_cluster.this.*.port, [""]), 0)
}
output "rds_cluster_master_username" {
description = "The master username"
value = element(concat(aws_rds_cluster.this.*.master_username, [""]), 0)
sensitive = true
}
output "rds_cluster_hosted_zone_id" {
description = "Route53 hosted zone id of the created cluster"
value = element(concat(aws_rds_cluster.this.*.hosted_zone_id, [""]), 0)
}
# aws_rds_cluster_instance
output "rds_cluster_instance_endpoints" {
description = "A list of all cluster instance endpoints"
value = aws_rds_cluster_instance.this.*.endpoint
}
output "rds_cluster_instance_ids" {
description = "A list of all cluster instance ids"
value = aws_rds_cluster_instance.this.*.id
}
# aws_security_group
output "security_group_id" {
description = "The security group ID of the cluster"
value = local.rds_security_group_id
}
# Enhanced monitoring role
output "enhanced_monitoring_iam_role_name" {
description = "The name of the enhanced monitoring role"
value = element(concat(aws_iam_role.rds_enhanced_monitoring.*.name, [""]), 0)
}
output "enhanced_monitoring_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role"
value = element(concat(aws_iam_role.rds_enhanced_monitoring.*.arn, [""]), 0)
}
output "enhanced_monitoring_iam_role_unique_id" {
description = "Stable and unique string identifying the enhanced monitoring role"
value = element(concat(aws_iam_role.rds_enhanced_monitoring.*.unique_id, [""]), 0)
}