Skip to content

[BUG]: drizzle-kit check wrongly tries to use AWS Data API #4775

@KinanLak

Description

@KinanLak

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.44.3

What version of drizzle-kit are you using?

0.31.4

Other packages

No response

Describe the Bug

Hello,

When running:

bunx drizzle-kit check

I get the following error:

➜ bunx drizzle-kit check             
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/kinan/repos/nautika/apps/server/drizzle.config.ts'
 Error  Please provide required params for AWS Data API driver:
    [x] database: undefined
    [✓] secretArn: 'postgresql'

It refers to "AWS Data API", but I'm not using it. My config explicitly uses the PostgreSQL dialect:

export default defineConfig({
  schema: "./src/db/schema/index.ts",
  dialect: "postgresql",
  dbCredentials: {
    host: env.PG_HOST,
    port: env.PG_PORT,
    user: env.PG_USER,
    password: env.PG_PASSWORD,
    database: env.PG_DB,
    ssl: env.PG_SSL,
  },
});

This seems similar to an older issue reported for the push command, where drizzle-kit mistakenly defaults to AWS Data API.
A comment there also mentions this happening with check.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions