[Django]-Unable to connect to Amazon RDS Postgres Database from my Django Web Application


Based on the comments and additional info.

The inbound rule for 5432 port is set to security group sg-597. This allows for inbound traffic only from other instances that have the same sg, not from the internet.

To enable access to the rds from the internet have to use either as the source (i.e. all source locations), or which is better, specific IP range or address (e.g. The range can be the range of your work or home public network, and IP can be the specific address of your workstation.


Leave a comment