You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get my development team running a DynamoDB instance locally to help with my team's dev process.
In order to be able to run a local version of the DB, you need to specify the endpoint_url to your locally running version (e.g. localhost:8000). Unfortunately, AWS cli does not support supplying the endpoint_url in the config (ref). That leaves the only real option as passing the endpoint_url to all calls to boto3.resource().
However, this package does not allow us to drill down into its call to boto3.resource() to pass in this value. Without this, we can't use this package for development purposes.
Proposed Solution
The DynamoDbMutex and MutexTable classes should accept a parameter for endpoint_url (similar to how it accepts region_name) that it passes to boto3.resource()
Long term, I anticipate it might be simpler to have these classes accept a dict resource_params that gets passed as kwargs to boto3.resource. This would help alleviate any one-off instances like this. However, this would require a breaking change (we would have to specify region_name in the params, instead as a standalone kwarg).
I can put up a PR for the first solution if you are comfortable with the proposal?
The text was updated successfully, but these errors were encountered:
Just realized that we are on a previous version of this package, and the newest version supports this functionality with DYNAMO_DB_URL. I'll close this issue as there is no development needed. Sorry!
Problem
I am trying to get my development team running a DynamoDB instance locally to help with my team's dev process.
In order to be able to run a local version of the DB, you need to specify the
endpoint_url
to your locally running version (e.g.localhost:8000
). Unfortunately, AWS cli does not support supplying theendpoint_url
in the config (ref). That leaves the only real option as passing theendpoint_url
to all calls toboto3.resource()
.However, this package does not allow us to drill down into its call to
boto3.resource()
to pass in this value. Without this, we can't use this package for development purposes.Proposed Solution
The
DynamoDbMutex
andMutexTable
classes should accept a parameter forendpoint_url
(similar to how it acceptsregion_name
) that it passes toboto3.resource()
Long term, I anticipate it might be simpler to have these classes accept a dict
resource_params
that gets passed as kwargs toboto3.resource
. This would help alleviate any one-off instances like this. However, this would require a breaking change (we would have to specifyregion_name
in the params, instead as a standalone kwarg).I can put up a PR for the first solution if you are comfortable with the proposal?
The text was updated successfully, but these errors were encountered: