Drizzle Studio with AWS Aurora Serverless
Hello All! I am having some troubles to run the Drizzle Studio Console.
I am using an AWS RDS Aurora Serverless with Postgres (SST orchestrated)
When runing the studio command I am receiving some errors about the databaseCredentials.
I am accesing the database this way and don't have any database credentials to add in the drizzle configuration:
TypeError: Cannot read properties of undefined (reading 'connectionString')
Any help or guidance is really apreciated ๐
thanks!
1 Reply
I think youโre missing the connection string from the drizzle config, but SST by default puts the db behind a VPC which is not accessible unless you did the configuration to allow public access (and other network configurations). I think that you could use https://github.com/sst/torpedo to be able to connect to the db from your local and then just use the values from aws to create the connection string and add it to the drizzle config. To get the rds credentials you can search for rds on the aws console and then get the password from either secrets manager or parameter store (both are also products of aws). Im not sure if it will work with newer versions of drizzle kit, but itโs worth giving it a shot ๐ช.
GitHub
GitHub - sst/torpedo: Connect to databases in private VPCs securely...
Connect to databases in private VPCs securely the easy way - no VPN required - GitHub - sst/torpedo: Connect to databases in private VPCs securely the easy way - no VPN required