DT
Drizzle TeamValentin Galfre
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!
R
Raseβ’163d ago
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
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More Postseslint-plugin-drizzle add "db" as defaultIs there a reason why it is automatically applied for every delete function? I think most users woulDoes Promise.all work correct in transactions?As I just found out, pg only works with one query (or more if there is more than one connection), soFindFirst Config Optional `with`Hi, I am trying to do something like an optional findFirst config here. i am expecting the resultTypSupabase primary key typeWhen I run `introspect`, the primary key of my tables look something like this:
```id: bigint("id",