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
|
output "id" {
description = "RDS instance identifier"
value = aws_db_instance.this.id
}
output "arn" {
description = "RDS instance ARN"
value = aws_db_instance.this.arn
}
output "endpoint" {
description = "RDS instance connection endpoint"
value = aws_db_instance.this.endpoint
}
output "address" {
description = "RDS instance hostname"
value = aws_db_instance.this.address
}
output "port" {
description = "RDS listener port"
value = aws_db_instance.this.port
}
output "master_user_secret_arn" {
description = "Secrets Manager secret ARN for master password"
value = length(aws_db_instance.this.master_user_secret) > 0 ? aws_db_instance.this.master_user_secret[0].secret_arn : null
}
|