################################################################################ # Module: rds # Outputs ################################################################################ output "endpoint" { description = "RDS instance endpoint hostname (without port). Use to construct DATABASE_URL." value = aws_db_instance.main.address } output "port" { description = "Port the RDS instance listens on (always 5432)." value = aws_db_instance.main.port } output "db_name" { description = "Name of the database created on the RDS instance." value = aws_db_instance.main.db_name } output "db_username" { description = "Master username for the RDS instance." value = aws_db_instance.main.username } output "instance_id" { description = "RDS instance identifier." value = aws_db_instance.main.identifier } output "instance_arn" { description = "ARN of the RDS instance." value = aws_db_instance.main.arn } output "security_group_id" { description = "Security group ID attached to the RDS instance. Use to add further ingress rules if needed." value = aws_security_group.rds.id } output "db_subnet_group_name" { description = "Name of the DB subnet group." value = aws_db_subnet_group.main.name }