Skip to content

Commit

Permalink
Connect default database "postgres" while creating database (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianuragsingh authored Aug 15, 2023
1 parent 5227d0a commit f33142c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_pg_usernames(cursor):

def create_database(master_username, master_password, rds_host, rds_port, database_name):
conn = psycopg2.connect(user=master_username, password=master_password,
host=rds_host, port=rds_port, dbname=database_name)
host=rds_host, port=rds_port, dbname="postgres")
conn.autocommit = True
cursor = conn.cursor()

Expand Down

0 comments on commit f33142c

Please sign in to comment.