bykka / dynamoit

A simple AWS DynamoDB viewer
GNU General Public License v3.0
92 stars 4 forks source link

localstack connection #16

Closed kewur closed 1 year ago

kewur commented 3 years ago

Hi,

would it be possible to support localstack? I need to specify an endpoint somehow and unfortunatley currently the profiles doesn't support giving an endpoint. https://github.com/aws/aws-cli/issues/1270

I think if I can just enter credentials manually with an optional endpoint argument would be great

thanks

kewur commented 3 years ago

actually I've looked at your implementation, looks like you're using aws provided profileloader class to create dynamodb clients. It's possible to implement it but I think we'd need to change the client creation logic slightly. and set the endpoint manually if it's provided somehow. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.NET.01.html

bykka commented 3 years ago

Hi,

I guess better to make a proper UI dialog for creating a new DynamoDB connection and save it in the user's preferences. If you are in a rush then add tiny modifications to the class ua.org.java.dynamoit.db.DynamoDBService

the line 65 should be something like this

if (profileName.equals("myLocalProfile")) {
    builder.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration("http://localhost:8000", ""))
}
kewur commented 3 years ago

oh nice, thanks. I tried it out, doesnt seem to populate the table names so far but at least the exception isn't being thrown. I'll look further later

bykka commented 1 year ago

Local connection now is there