skip to Main Content

Cannot connect to AWS RDS PostgreSQL instance from local machine – Amazon Web Sevices

I have created a AWS RDS PostgreSQL instance with public access enabled but I am unable to connect to it. Here is my code: try: conn = psycopg2.connect(dbname="elevate_permission", user="postgres", password="password123", host="database-1.ce2ilrafe9ry.ap-southeast-1.rds.amazonaws.com") print("Connected to DB") except psycopg2.OperationalError as e: logger.error(e) sys.exit()…

VIEW QUESTION
Back To Top
Search