- Newest
- Most votes
- Most comments
The "Connect timed out" error you're encountering while trying to connect to your RDS PostgreSQL database during the AWS Blu Age L3 Workshop data migration is a common connectivity issue. Here are several troubleshooting steps to resolve this:
-
Check your VPC configuration: Ensure that the RDS instance is in the same VPC as your AppStream 2.0 instance where you're running the migration tool. This is crucial for proper connectivity.
-
Verify security group settings: The most common cause of connection problems is incorrect security group configuration. Make sure the security group assigned to your RDS instance allows inbound traffic on port 5432 (PostgreSQL default port) from your AppStream instance's security group.
-
Public accessibility: If you're trying to access the database from outside the VPC, check that "Public access" is set to "Yes" for the RDS instance.
-
Add proper inbound rules: In the RDS instance's security group, add an inbound rule of type PostgreSQL (port 5432) with the source set to the security group ID of your AppStream instance or the "default" security group of the VPC.
-
Check network ACLs: If you've modified the default Network ACLs, ensure they're not blocking the necessary traffic.
-
Verify endpoint and credentials: Double-check that you're using the correct endpoint, port, database name, username, and password when attempting to connect.
-
Database user permissions: Ensure the database user has CONNECT access to the database. You can grant this with:
GRANT CONNECT ON DATABASE database_name TO username;
If you've confirmed all these settings and still can't connect, you might need to open a support case with AWS, providing your Environment ID and relevant logs for further diagnosis.
Sources
BluAge L3 Workshop Go-Live: Unable to access RDS PostGres database created on default VPC | AWS re:Post
AWS Glue job fails to connect to RDS PostgreSQL (Publicly Accessible) — “SocketTimeoutException: connect timed out” | AWS re:Post
Troubleshooting connections to your RDS for PostgreSQL instance - Amazon Relational Database Service
answered a year ago
