[英]DevOps, DNS and Public IP
I have a devops automation environment. 我有一个devops自动化环境。 Each successful build (web app) in Jenkins triggers a creation of EC2 (Linux) instance in AWS which is set to receive public IP and the app gets deployed on that instance. Jenkins中的每个成功构建(Web应用程序)都会在AWS中触发EC2(Linux)实例的创建,该实例被设置为接收公共IP,并且该应用程序将部署在该实例上。 I'm calling the web application using instance's public IP. 我正在使用实例的公共IP调用Web应用程序。 I need to mask the IP and call the app by custom name. 我需要屏蔽IP并通过自定义名称调用该应用。 I have created a subdomain on Route 53 subdomain.abc.com. 我已经在Route 53 subdomain.abc.com上创建了一个子域。 I have three set of web apps and want to call them like one.subdomain.abc.com, two.subdomain.abc.com etc. 我有三套网络应用程序,想要调用它们像one.subdomain.abc.com,two.subdomain.abc.com等。
Since each time we have a different VM I'm not sure if EIP is an option. 由于每次我们都有不同的VM,所以我不确定是否可以选择EIP。 Can someone please suggest a solution ? 有人可以提出解决方案吗?
Many thanks in advance. 提前谢谢了。
If you are using just one Amazon EC2 instance for each app, then for each app you can: 如果每个应用程序仅使用一个 Amazon EC2实例,则对于每个应用程序,您可以:
A
record in Amazon Route 53 to point to that Elastic IP address (eg app1.example.com
) 在Amazon Route 53中创建一个A
记录以指向该弹性IP地址(例如app1.example.com
) If you wish to serve traffic from app1.example.com
to several Amazon EC2 instances, then create an ALIAS
record in Route 53 to point to an Elastic Load Balancer and register the EC2 instances with the load balancer. 如果您希望将流量从app1.example.com
到多个 Amazon EC2实例,请在Route 53中创建一个ALIAS
记录,以指向Elastic Load Balancer ,并在负载均衡器中注册EC2实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.