简体   繁体   English

解决连接到 AWS RDS 上的免费试用 postgres 的问题

[英]Troubleshoot connecting to free trial postgres on AWS RDS

This is a temporary database, so I don't mind sharing credentials.这是一个临时数据库,所以我不介意共享凭据。 We have setup the following in RDS:我们在 RDS 中设置了以下内容:

Host and Port and confirming public access主机和端口并确认公共访问

在此处输入图片说明

DB Name数据库名称

在此处输入图片说明

Not shown is the username and password, however I am 100% certain that we are inputting the correct username and password into PgAdmin 4 and into python's psycopg2.connect function.没有显示用户名和密码,但是我 100% 确定我们正在将正确的用户名和密码输入到 PgAdmin 4 和 python 的psycopg2.connect函数中。

Failing connection in PgAdmin 4 PgAdmin 4 中的连接失败

在此处输入图片说明

However, we are failing to connect in both PgAdmin 4 and in python.但是,我们在 PgAdmin 4 和 python 中都无法连接。 The database is definitely public, and I am fairly certain that we are inputting the correct parameters.数据库绝对是公开的,我相当确定我们输入的参数是正确的。 I believe dbname is testdb and not the instance ID etl-test我相信dbnametestdb而不是实例 ID etl-test

What could be the issue?可能是什么问题? The one thing I am not certain about are the VPCs and the VPC security groups... do we need to input these anywhere into python or PgAdmin4 in order to connect?我不确定的一件事是 VPC 和 VPC 安全组……我们是否需要在任何地方将这些输入到 python 或 PgAdmin4 中才能连接?

Its not the issue with pg-Admin or python.这不是 pg-Admin 或 python 的问题。 Looks like you don't have proper inbound rules set up.看起来您没有设置适当的入站规则。 this blog post might interests you 这篇博文可能会让你感兴趣

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM