jackson icon indicating copy to clipboard operation
jackson copied to clipboard

DynamoDB - Pay-Per-Request pricing and/or use an existing table

Open sbking opened this issue 1 year ago • 0 comments

Is your proposal related to a problem?

Currently, SAML Jackson seems to only support creating its own DynamoDB table with provisioned capacity.

Describe the solution you'd like

I would like to be able to use Pay-Per-Request pricing for DynamoDB instead of provisioned capacity. Or, even better, I want to provision my DynamoDB table myself using my existing Infrastructure-as-Code tooling. Ideally, I should be able to specify an existing DynamoDB table name, hash key name, and sort key name. I don't really have any need for Jackson to create its own DynamoDB table for me.

Describe alternatives you've considered

I would love a way to provide a completely custom database provider implementation based on some interface.

Edit: Looks like this is possible by passing a driver that implements DatabaseDriver to the db option when setting up jackson. Unfortunately neither the built-in Postgres nor DynamoDB drivers will work for my use case - we do not use the public schema in Postgres and the application AWS role does not have permission to create DynamoDB tables. I will try to implement my own custom DatabaseDriver - it would be great if this were documented.

sbking avatar Aug 16 '24 17:08 sbking