Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation regarding using local DynamoDB #881

Closed
fsiler opened this issue Sep 1, 2021 · 2 comments
Closed

Documentation regarding using local DynamoDB #881

fsiler opened this issue Sep 1, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request minor release Will be addressed in the next minor release ready to release
Milestone

Comments

@fsiler
Copy link

fsiler commented Sep 1, 2021

Is your idea related to a problem? Please describe.
I cannot for the life of me figure out how to set up a boto3 session that knows to talk to the local DynamoDB session. It's easy enough to set up eg

import boto3
import awswrangler as wr
boto3_session = boto3.session.Session(region_name='localhost')
wr.dynamodb.put_df(df=df, table_name=USERS_TABLE, boto3_session=boto3_session)

But here, awswrangler will try to communicate with the cloud instance, and boto3.session.Session does not have any kind of endpoint parameter- those can only be specified for the client or resource objects.

Describe the solution you'd like
Some way of telling awswrangler to please use the local DynamoDB instance, whether that's by just adding an endpoint_url parameter, or by documenting how it works. I just can't figure it out based on available boto3 and awswrangler docs.

@fsiler fsiler added the enhancement New feature or request label Sep 1, 2021
@jaidisido jaidisido self-assigned this Sep 1, 2021
@jaidisido
Copy link
Contributor

Wrangler enables users to set global boto3 configuration, including service endpoint URLs. However, this is currently missing for DynamoDB which I am fixing in PR #887. Thanks for raising this, I will update this thread once it's merged

@jaidisido
Copy link
Contributor

Now merged to main and can be tested:

pip uninstall awswrangler -y
pip install git+https://github.com/awslabs/aws-data-wrangler.git@main

until it's available in the next release

@jaidisido jaidisido added this to the 2.12.0 milestone Sep 3, 2021
@jaidisido jaidisido added minor release Will be addressed in the next minor release ready to release labels Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor release Will be addressed in the next minor release ready to release
Projects
None yet
Development

No branches or pull requests

2 participants