aws / aws-dax-go

AWS DAX SDK for the Go programming language. https://aws.amazon.com/dynamodb/dax
Apache License 2.0
47 stars 49 forks source link

How to attach routes to the Dax Cluster #24

Closed Arnaldo-Manjate closed 4 years ago

Arnaldo-Manjate commented 4 years ago

Hi there

I need assistance making a query to a DynamoDB table through the Dax .After reading through the Code i see that the only way to get the Error "Service Unavailable : no routes found" is the endpoint or the port are not found in the confuguration

please correct me on how i can attach me endpoint client

Error : 2

This is where the error is occurring : AwsErr

I am currently getting this error when testing code that I implemented to test queries through the Dax Cluster

jiaqihu-A commented 4 years ago

Hi there

I need assistance making a query to a DynamoDB table through the Dax .After reading through the Code i see that the only way to get the Error "Service Unavailable : no routes found" is the endpoint or the port are not found in the confuguration

please correct me on how i can attach me endpoint client

Error : 2

This is where the error is occurring : AwsErr

I am currently getting this error when testing code that I implemented to test queries through the Dax Cluster

Hello,

we have sample code here to demonstrate how to use DAX Go client. https://github.com/aws-samples/aws-dax-go-sample/blob/master/try_dax.go#L213

The error you attached can also indicate a network problem. We recommend you to check your network security group setting to ensure the host you run the client can connect to DAX node.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.create-cluster.cli.configure-inbound-rules.html

Arnaldo-Manjate commented 4 years ago

Thank you it was indeed a security group issue , It has been resolved thanks

Arnaldo Manjate Developer

| T 011 680 0540 | E arnaldo@rapidtrade.com shaun@rapidtrade.com | www.rapidtrade.com

On Fri, Apr 24, 2020 at 10:15 PM Jiaqi Huo notifications@github.com wrote:

Hi there

I need assistance making a query to a DynamoDB table through the Dax .After reading through the Code i see that the only way to get the Error "Service Unavailable : no routes found" is the endpoint or the port are not found in the confuguration

please correct me on how i can attach me endpoint [image: client] https://user-images.githubusercontent.com/52455180/80098940-fd8c9600-856d-11ea-8ed2-d000d68f884c.png

Error : [image: 2] https://user-images.githubusercontent.com/52455180/80099215-67a53b00-856e-11ea-9b61-1f37a87921c1.png

This is where the error is occurring : [image: AwsErr] https://user-images.githubusercontent.com/52455180/80099805-5c064400-856f-11ea-9b36-db4fab1c8f9c.png

I am currently getting this error when testing code that I implemented to test queries through the Dax Cluster

Hello,

we have sample code here to demonstrate how to use DAX Go client. https://github.com/aws-samples/aws-dax-go-sample/blob/master/try_dax.go#L213

The error you attached can also indicate a network problem. We recommend you to check your network security group setting to ensure the host you run the client can connect to DAX node.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.create-cluster.cli.configure-inbound-rules.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws/aws-dax-go/issues/24#issuecomment-619219111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMQGODG2RNTMNVAPVTAWKC3ROHXNLANCNFSM4MPAWMLQ .

web3coach commented 3 years ago

Ah the hours I wasted on this. My problem was not running my program from within the AWS VPC. I thought it's a security group issue as well. Then I scp my program binary to EC2, run it, and voila... I queried an Item from my DAX.

DAX is only accessible from AWS VPC! https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.access-control.html