如何交换环境的网址完全工作? [英] how does swap environmental URL work exactly?

查看:193
本文介绍了如何交换环境的网址完全工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用的交换环境的URL来升级我的弹性魔豆的应用程序,使用两种环境。我在映射到魔豆URL不同的URL CNAME记录。我试图然后推到生产环境(现在是在测试的URL),然后再次交换,但这似乎不能正常工作。

I recently used swap environmental URL to upgrade my Elastic Beanstalk application, using two environments. I have a CNAME record at a different URL mapped to the beanstalk URL. I tried then to push to the production environment(which now was at the test URL), and then swapped again, but this seemed to not work correctly.

我希望交换映射测试环境到生产的网址,这意味着当我是previously推到测试环境中测试,现在我应该推到生产环境,然后交换再拍零-downtime升级。这可以是非常混乱,所以我希望有人能阐明这一点,因为似乎有adearth的有关弹性魔豆和交换的URL。

I would expect the swap to map the test environment to the production URL, meaning that when I was previously pushing to the test environment to test, now I should push to the production environment, then swap to make another zero-downtime upgrade. This can be very confusing, so I was hoping someone can shed light on this, as there seems to be adearth of information about Elastic Beanstalk and swapping URLs.

推荐答案

请小心,这里哪些交换网址功能正在讨论......如果你指的是AWS弹性魔豆操作| 交换环境网址的功能,我的经验是,这个功能具有的没有的做DNS和的没有的做了Route 53。

Please be careful here about which "Swap URL" feature is being discussed... If you are referring to the AWS Elastic Beanstalk "Actions" | "Swap Environment URLs" feature, my experience is that this feature has nothing to do with DNS and nothing to do with Route 53.

这是我所看到的, AWS EB交换的URL 简单地交换了面向公众的网址是你的魔豆环境......让你不必改变你的DNS的。

From what I can see, AWS EB Swap URL's simply swaps the public-facing URL's of your beanstalk environments... Keeping you from having to change your DNS at all.

例如:

让我们假设你有两个EB环境:

Let's assume you have two EB environments:

质量与一个EB URLquality-qq443224.elasticbeanstalk.com

"quality" with an EB URL of "quality-qq443224.elasticbeanstalk.com"

质量patched1用的EB URLquality-patched1.elasticbeanstalk.com

"quality-patched1" with an EB URL of "quality-patched1.elasticbeanstalk.com"

如果您选择了质量patched1实例,然后选择交换环境的URL与您的质量的情况下......所有这一切将发生的事情是他们的现在将被列为

If you choose the "quality-patched1" instance and choose "Swap Environment URL's" with your "quality" instance... All that will happen is they will now be listed as:

质量与一个EB URLquality-patched1.elasticbeanstalk.com

"quality" with an EB URL of "quality-patched1.elasticbeanstalk.com"

质量patched1用的EB URLquality-qq443224.elasticbeanstalk.com

"quality-patched1" with an EB URL of "quality-qq443224.elasticbeanstalk.com"

因此​​,现有的DNS的CNAME(假定为53路和假定指着/quality-qq443224.../)不用做任何改动。他们将被引导到您的修补实例。

Therefore your EXISTING DNS CNAMEs (assumed to be in Route 53 and assumed to be pointing at /quality-qq443224.../) do not have to change at all... They will be directed to your new patched instance.

这篇关于如何交换环境的网址完全工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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