从本地计算机连接到AWS上的Neptune [英] Connect to Neptune on AWS from local machine

查看:228
本文介绍了从本地计算机连接到AWS上的Neptune的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从办公室的本地计算机连接到AWS Instance中的Neptune DB,就像从办公室连接RDS。是否可以从本地计算机连接Neptune db? Neptune db是公开可用的。开发人员可以通过任何方式从办公室连接neptune db。

I am trying to connect to Neptune DB in AWS Instance from my local machine in office,like connecting RDS from office.Is it possible to connect Neptune db from local machine?. Is Neptune db publicly available.Is there any way developer can connect neptune db from office.

推荐答案

Neptune不支持公共端点(可从VPC外部访问的端点)。但是,很少有体系结构选项可用来在VPC之外访问Neptune实例。它们都具有相同的主题:设置位于VPC内的代理(EC2计算机,ALB或类似的东西,或它们的组合),并使该代理可从VPC外部访问。

Neptune does not support public endpoints (endpoints that are accessible from outside the VPC). However, there are few architectural options using which you can access your Neptune instance outside your VPC. All of them have the same theme: setup a proxy (EC2 machine, or ALB, or something similar, or a combination of these) that resides inside your VPC, and make that proxy accessible from outside your VPC.

似乎您只是想出于开发目的而与您的实例对话。最简单的选择是启动ALB,并创建一个指向您实例IP的目标组。

It seems like you want to talk to your instance purely for development purposes. The easiest option for that would be to spin up an ALB, and create a target group that points to your instance's IP.

简要步骤(有意不详细介绍,请参阅AWS Docs了解详细说明):

Brief Steps (These are intentionally not in detail, please refer to AWS Docs for detailed instructions):


  1. dig + short<您的群集端点>
    这将为您提供当前主服务器的IP地址。

  1. dig +short <your cluster endpoint> This would give you the current master's IP address.

创建ALB(有关如何执行此操作,请参阅AWS Docs)。

Create an ALB (See AWS Docs on how to do this).

现在,从开发人员框中,您可以在PORT-A连接到ALB端点在内部将请求转发到您的Neptune实例。

Now from your developer boxes, you can connect to your ALB endpoint at PORT-A, which would internally forward the request to your Neptune instance.

请结帐ALB文档,详细了解如何创建它以及围绕它的概念。如果您需要我详细说明任何步骤,请随时询问。

Do checkout ALB docs for details around how you can create it and the concepts around it. If you need me to elaborate any of the steps, feel free to ask.

注意:对于生产设置,这不是推荐的解决方案。 Neptune实例使用的IP必然会随着故障转移和主机更换而发生变化。仅将此解决方案用于测试目的。如果您想要类似的生产设置,请随时提出问题,我们可以讨论选项。

NOTE: This is not a recommended solution for a production setup. IP's used by Neptune instances are bound to change with failovers and host replacements. Use this solution only for testing purposes. If you want a similar setup for production, feel free to ask a question and we can discuss options.

这篇关于从本地计算机连接到AWS上的Neptune的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆