just updated drizzle kit and ORM

import '@/drizzle/config' //load env vars
import { defineConfig } from 'drizzle-kit'

export default defineConfig({
dialect:"postgresql",
driver:"aws-data-api",
schema: './drizzle/schema.ts',
out: './drizzle/migrations',
dbCredentials: {
database:process.env.POSTGRES_URL as string
},
})
import '@/drizzle/config' //load env vars
import { defineConfig } from 'drizzle-kit'

export default defineConfig({
dialect:"postgresql",
driver:"aws-data-api",
schema: './drizzle/schema.ts',
out: './drizzle/migrations',
dbCredentials: {
database:process.env.POSTGRES_URL as string
},
})
what am I doing wrong here?? according to drizzle docs dbCredentials should take a property url but here its saying to pass 3 props databse, secretArn and resourceArn I dont even know what it is. Its an old project I just updated the ORM and getting these errors.
No description
Solution:
removed it and passed the url, its fixed now
Jump to solution
4 Replies
Naeemgg
NaeemggOPā€¢5mo ago
Ohh I got confused with the driver prop
Solution
Naeemgg
Naeemggā€¢5mo ago
removed it and passed the url, its fixed now
rphlmr āš”
rphlmr āš”ā€¢5mo ago
hello šŸ‘‹ Yes by default Drizzle will select a driver for the kit commands. If you explicitly choose aws, you need to add secretArn and resourceArn (Iā€™m not an expert on AWS, but I believe it is something provided to you in an admin dashboard)
Naeemgg
NaeemggOPā€¢5mo ago
Yepp
Want results from more Discord servers?
Add your server