将弹性IP连接到EC2弹性豆stal的实例

发布于 2025-02-04 02:16:06 字数 177 浏览 4 评论 0原文

我的生产和开发应用程序正在EBS的EC2实例上运行,我需要将弹性IP附加到每个实例上。我能够将弹性IP与每个实例相关联,但是一段时间后,由于应用程序负载余额,IPS自动拆分,从而创建了EC2的新实例,我知道这是由于应用程序负载造成的,但我想知道如何持续存在弹性IPS到每个实例?我正在使用第三方集成,其中我必须发送静态IP使它们被列入白色。

My production and development application are running on EBS's EC2 instances where I need to attach an elastic IP to each instance. I am able to associate the elastic IPs to each instance but after some time the IPs disassociated automatically due to application load balance which creates a new instance of EC2, I know it's due to Application Loadbalance but I want to know how can I persist the elastic IPs to each instance? I am using third party integration in which I have to send my static IPs to make them whitelisted.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2025-02-11 02:16:06

在自动缩放环境中运行时,用于从固定的IP(或固定IP的固定集)向第三方发送请求的AWS解决方案是创建 nat Gateway 在您的公共子网中(或每个公共子网中的一个),将弹性IPS分配给NAT网关,然后放置您EC2在私人子网中具有通往NAT网关的路线。

在此配置中,所有出站请求将通过NAT网关,该NAT网关将具有静态(弹性)IP,可以由第三方列入白色。

The AWS solution for sending requests to third parties from a fixed IP (or fixed set of IPs) when running in an auto-scaled environment is to create a NAT Gateway in your public subnet (or one in each public subnet), assign Elastic IPs to the NAT Gateways, and place your EC2 instances in private subnets with a route to the NAT Gateway.

In this configuration, all outbound requests will go through the NAT Gateway(s) which will have static (Elastic) IPs that can be whitelisted by third-parties.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文