'aws rds postgres db disconnected after 5 minutes of idle time

I created a free rds instance with postgres. But after 5 minutes if connection is idle, it gets disconnected. I have to run node js application again to connect. This does not happen in case of local database. I tried to create parameter group with to modify timeout values but its not working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source