简体   繁体   English

使用NAT实例从外部连接到Elasticache

[英]Connect to Elasticache from outside with NAT instance

I'm trying to configure AWS Elasticache access from the outside a VPC via a NAT Instance. 我正在尝试通过NAT实例从外部VPC配置AWS Elasticache访问。 The process is quite well documented here however every docs point to setup a rule in the iptables to forward the traffic to the IP address of Elasticache. 该过程在此处得到了很好的记录但是每个文档都指向在iptables设置一条规则以将流量转发到Elasticache的IP地址。 The problem raises here because I don't have any IP address but just a DNS name. 这里出现问题是因为我没有任何IP地址,而只有一个DNS名称。 Am I missing anything? 我有什么想念的吗?

我通过ping主要端点找到了专用IP地址

大多数AWS托管服务端点(如RDS,ALB,NLB,AD ...)将具有DNS名称,可以通过在VPC(内部端点)内执行nslookup来为其找到IP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM