Server is not connection between Cloud 9 IDE and AWS RDS of postgresql

rails
postgresql
server

#1

PG::ConnectionBad: could not connect to server: Connection timed out --> is the searchable part of the error.

I did not make changes to anything and all the sudden after not touching the code in my project over a weekend, the server can no longer connect.

I have stopped, started, and restarted the rds postgresql through the terminal . I have updated rds and rebooted but still not connection. I cannot tell where the disconnection is at this point. I know this is a server issue, but everything is set up for aws so I am kind of figuring that that may be more on Cloud9 side on where the problem could be.

I had thought about reconfiguring and changing my .env file to create and update a new instance but I would rather figure this out . Any help would be awesome. Thank you