如何将我的开发机连接到Amazon Memory DB集群。

huangapple go评论60阅读模式
英文:

How to connect my developer machine with Amazon Memory DB Cluster

问题

Memory DB集群已配置,与同一VPC内的EC2实例连接。但是,即使通过VPN连接,也无法telnet到Memory DB集群,而在EC2实例上,telnet和redis-cli都可以正常工作。

通过OpenVPN配置了VPN并连接。连接VPN后,我可以访问EC2实例的私有IP[telnet等],但无法连接到Memory DB集群。需要将我的开发者机器连接到DB集群以继续。

尝试查找任何可以连接的集群的私有IP或其他内容,但没有找到。

英文:

Memory DB Cluster configured, connected with an EC2 instance within same VPC. but cannot telnet Memory DB Cluster even when connected via vpn where as from EC2 instance, telnet and redis-cli both works.

Configured VPN via OpenVPN and connected. I can access EC2 instance [telnet etc] via private IP when connected with VPN, but could not connect with Memory DB cluster. need to connect my developer machine to be connected with DB Cluster to proceed.

tried to find any private IP of cluster or something by which i can connect but couldn't.

答案1

得分: 1

Instead of VPN, it would be easy to do SSH tunneling to do port forwarding for development purposes. Create a bastion host and SSH tunnel and forward the Memory DB port. You can follow the instructions which were done for RDS port forward: Link

英文:

Instead of VPN it would be easy to do ssh tunnelling to do port forwarding for development purposes . Create a bastion host and ssh tunnel and forward the Memory db port. you can follow the instructions which were done for RDS port forward https://aws.amazon.com/premiumsupport/knowledge-center/rds-connect-using-bastion-host-linux/

huangapple
  • 本文由 发表于 2023年1月6日 13:21:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/75027205.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定