-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
49 lines (40 loc) · 1.32 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
output "id" {
value = var.engine_type == "rds" ? aws_db_instance.this[0].id : aws_rds_cluster.this[0].id
description = "Instance or Cluster ID"
}
output "identifier" {
value = var.engine_type == "rds" ? aws_db_instance.this[0].id : aws_rds_cluster.this[0].id
description = "Instance or Cluster Identifier "
}
output "arn" {
value = var.engine_type == "rds" ? aws_db_instance.this[0].arn : aws_rds_cluster.this[0].arn
description = "Instance or Cluster ARN"
}
output "username" {
value = local.username
description = "Username for the Database"
}
output "database" {
value = local.database
description = "database name"
}
output "port" {
value = local.port
description = "Dtabase server port"
}
output "endpoint" {
value = var.engine_type == "rds" ? aws_db_instance.this[0].endpoint : aws_rds_cluster.this[0].endpoint
description = "Instance or Cluster Endpoint"
}
output "kms_key_id" {
value = local.kms_key_id
description = "Instance or Cluster KM Key ID"
}
output "performance_insights_kms_key_id" {
value = local.performance_insights_kms_key_id
description = "Instance or Cluster Performance insight KM Key ID"
}
output "monitoring_role_arn" {
value = local.monitoring_role_arn
description = "Instance or Cluster Monitoring role arn"
}