AWS Elastic Beanstalk:命令eb列表不显示任何环境 [英] AWS Elastic Beanstalk : the command eb list shows no environments

查看:134
本文介绍了AWS Elastic Beanstalk:命令eb列表不显示任何环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Elastic Beanstalk,并且创建了3个不同的环境.我用awsebcli.突然,命令eb list并没有显示我的环境,因此我无法部署该环境.我收到的错误是ERROR: This branch does not have a default environment. You must either specify an environment by typing "eb status my-env-name" or set a default environment by typing "eb use my-env-name". 我尝试了eb status 'my-env-name',再次出现错误:ERROR: The environment name 'my-env-name' could not be found.简而言之:我无法使用任何eb命令.

I am using Elastic Beanstalk and I have created 3 different environments. I used awsebcli. All of a sudden the command eb list doesn't show me my enviroments because of which I am unable to deploy the environment. The error I am getting is ERROR: This branch does not have a default environment. You must either specify an environment by typing "eb status my-env-name" or set a default environment by typing "eb use my-env-name". I tried eb status 'my-env-name', again I got an error : ERROR: The environment name 'my-env-name' could not be found. In short: I am unable to use any eb command.

推荐答案

消息本身很清晰.您尚未为正在处理的分支设置环境.

The message itself is clear. You haven't set an environment for the branch you are working on.

您可以切换到其配置的分支,但这意味着您在当前分支中所做的更改将无法在部署时使用,除非您合并所有更改或可以为当前正在使用的分支设置环境命令eb use name-of-your-env.也可以在应用程序的Elastic Beanstalk配置文件中配置此最后一个.

You can either switch to the branch it's configure, but this means the changes you have in the current branch won't be available on deploy, unless you merge thos changes or you can set an environment for the branch you currently are using the command eb use name-of-your-env. This last can also be configured in the Elastic Beanstalk configuration file of your application.

希望这会有所帮助.

这篇关于AWS Elastic Beanstalk:命令eb列表不显示任何环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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