Eb部署部署旧的运行版本



我在Elastic Beanstalk中遇到了一个奇怪的问题。当我使用eb deploy部署时,我会得到以下错误:

During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.

我认为问题的出现是因为它试图部署以前部署的运行版本。部署时如何指定运行版本?谢谢

您可以使用

eb deploy -l <version-label> 

要指定要部署的版本:

指定要用于EB CLI创建的版本的标签。如果已使用该标签,EB CLI将重新部署带有该标签的早期版本

以下命令将显示当前部署的版本标签:

eb status  | grep Version