本文介绍了如何使用已经运行的eb env配置eb cli的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经接手了一个已部署到弹性beantalk中的项目。我想将eb cli配置为部署到现有环境而无需修改该环境。从我的研究中,我得到了一个印象,即 eb init 是正确的命令,但是当我开始进行交互式会话时,似乎要使用我的条目作为配置设置(例如平台版本)。我想确保我维护已经使用的设置(我无法确定我的运行环境使用的平台版本),并且我想确保不会由于任何原因替换或终止正在运行的ec2实例。 。有人知道这样做的最佳方法吗?预先感谢您的帮助。

I have taken over a project that has been deployed to elastic beanstalk. I would like to configure my eb cli to deploy to the existing environment without modifying that environment. From my research I get the impression that eb init is the proper command, however when I started going through the interactive session it seemed like it was going to use my entries as the configuration settings (e.g. platform version). I want to make sure that I maintain the settings that are already in use (I was unable to determine what platform version my running environment is using) and I want to make sure that the running ec2 instance will not be replaced or terminated for any reason. Does anyone know the best way to go about doing this? Thanks in advance for any help.

推荐答案

eb init 期间,请确保选择一个现有的应用程序和环境。只要这样做,就会从环境中拉出设置。

During eb init make sure select an existing application and environment. As long as you do this it will pull down the settings from the environment.

不过,话说就是 eb初始化的设置创建是用于将来环境的默认设置。它不会覆盖任何正在运行的环境上的任何设置。

However, that being said, the settings that eb init creates are default setting used for future environments. It will not overwrite any settings on any running environments.

就实例而言,Elastic Beanstalk可以根据运行状况和自动缩放功能随时终止或创建实例。但是,如果我们假设您的实例运行状况良好并且没有发生自动伸缩事件,则 eb部署绝不会导致实例被替换。

As far as instances, Elastic Beanstalk can terminate or create instances at anytime based on health and autoscaling. However, if we assume your instances are healthy and no autoscaling events occur, then eb deploy will never cause instances to be replaced.

但是我对您为什么担心实例被替换感到好奇。

I am however a little curious as to why you are so worried about your instances being replaced.

就确定当前平台而言,您可以得到来自 eb状态的信息。

As far as determining your current platform, you can get that information from eb status.

这篇关于如何使用已经运行的eb env配置eb cli的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 17:40