使用 Elastic Beanstalk 的静态 IP [英] Static IP using Elastic Beanstalk

查看:28
本文介绍了使用 Elastic Beanstalk 的静态 IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要静态 IP 以允许访问不在 AWS 网络上的防火墙网络.

I need the static IP to allow access to a firewalled network not on the AWS network.

是否可以使用 Elastic Beanstalk 为负载均衡的应用程序获取静态 IP?我正在关注关于使用 Route 53 托管我的应用程序的 AWS 文档一个域名,但从我读过的内容来看,这并不能确保静态 IP,因为它本质上是使用 CNAME 允许幕后更改 IP.这是正确的理解吗?有可能吗?

Is it possible to get a static IP for a load balanced app using Elastic Beanstalk? I'm following the AWS docs regarding using Route 53 to host my app with a domain name, but from what I've read, this does not ensure a static IP because it is essentially using a CNAME allowing the IP behind the scenes to change. Is that the right understanding? Is it possible at all?

推荐答案

在 VPC 中部署您的 beanstalk 环境,并通过正确的配置,用于出站流量的静态 IP 很容易.

Deploy your beanstalk environment in VPC, and with the right configuration, a static IP for outbound traffic is easy.

在此设置中,您的实例都通过一台机器中继其出站流量,您可以为其分配弹性 IP 地址.来自其背后所有实例的所有源自内部的、与 Internet 绑定的流量将出现在使用该单个弹性 IP 的其他网络的 bw 中.

In this setup, your instances all relay their outbound traffic through a single machine, which you can assign an elastic IP address to. All of the inside-originated, Internet-bound traffic from all of the instances behind it will appear, from the other network, to bw using that single elastic IP.

下面的 RDS 部分可能与您的需求无关,但原理都是一样的.

The RDS portion of the following may be irrelevant to your needs but the principles are all the same.

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo-vpc-rds.html

这篇关于使用 Elastic Beanstalk 的静态 IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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