forked from azavea/terraform-aws-postgresql-rds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
29 lines (24 loc) · 792 Bytes
/
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
output "id" {
value = aws_db_instance.postgresql.id
description = "The database instance ID"
}
output "database_security_group_id" {
value = aws_security_group.postgresql.id
description = "Security group ID of the database"
}
output "hosted_zone_id" {
value = aws_db_instance.postgresql.hosted_zone_id
description = "The zone ID for the autogenerated DNS name given in endpoint"
}
output "hostname" {
value = aws_db_instance.postgresql.address
description = "Public DNS name of database instance"
}
output "port" {
value = aws_db_instance.postgresql.port
description = "Port of database instance"
}
output "endpoint" {
value = aws_db_instance.postgresql.endpoint
description = "Public DNS name and port separated by a colon"
}