Jackie
Jackie

Reputation: 23527

Neptune throwing "Host did not respond in a timely fashion" when trying to connect from private EC2

I have created a neptune instance and per the documentation here...

I create the following yaml...

hosts: [xxx.xxx.us-east-2.neptune.amazonaws.com]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}

And when I try to connect everything seems to work I see...

==>All scripts will now be sent to Gremlin Server - [xx.xx.us-east-2.neptune.amazonaws.com/172.xx.x.xxx:8182] - type ':remote console' to return to local mode

What am I missing why is the query failing?

Upvotes: 0

Views: 367

Answers (2)

Divij Vaidya
Divij Vaidya

Reputation: 261

Have you enabled IAM authentication on your instance? If yes, you will have to perform some additional steps to connect to the DB.

If no, double check the following:

  1. EC2 instance is in the same VPC as the cluster.
  2. Check the inbound settings for security group attached to the cluster and outbound setting for your EC2 instance.

If it still doesn't connect, I would suggest you to contact AWS Support.

Upvotes: 2

abrag
abrag

Reputation: 1

Are you trying to connect from your pc or ec2 instance ? I think that Neptune is not publicly accessibly create ec2 instance in the same VPC and try to connect from it

Upvotes: -1

Related Questions