【问题标题】:Download/Retrieve existing Elastic Beanstalk environment configuration下载/检索现有的 Elastic Beanstalk 环境配置
【发布时间】:2017-04-02 18:36:59
【问题描述】:

我已经使用 AWS Web 控制台设置了一个弹性 beanstalk 应用程序和环境。一切正常,并根据需要。现在我们想要获取此环境的所有配置,以便我们可以再次设置此环境,可能使用 EB CLI 进行维护和部署(我们希望转换到不同的 AWS 账户并在那里克隆它)。我使用 EB CLI 尝试了eb config get,但出现错误 git:(master) ✗ eb config get our-env-test ERROR: Elastic Beanstalk could not find any saved configuration with the name "our-env-test".

【问题讨论】:

  • 您确定您拥有执行此操作的 IAM 权限吗?您是否在通话期间提供了正确的 AWS 信用?使用eb config list进行测试
  • @MarkYoung 是的。我刚刚意识到,当我执行eb config list 时,我得到了配置名称,我应该将返回的配置名称与eg config get 一起使用,而不是环境名称

标签: git amazon-web-services amazon-elastic-beanstalk ebcli


【解决方案1】:

看起来我应该使用eb config list 命令返回的配置名称,而不是环境名称。例如,在我的例子中,环境名称是our-env-test。因此,当我运行命令eb config list 时,我会返回our-env-test-config。现在当我运行命令eb config get our-env-test-config

>> eb config get our-env-test-config
    Configuration saved at: /Users/me/our-env/.elasticbeanstalk/saved_configs/our-env-test-config.cfg.yml

生成的配置文件存储在.elasticbeanstalk 目录中 注意:在这一切之前,您需要通过运行eb init 命令使用适当的 EB 项目初始化目录

【讨论】:

    猜你喜欢
    • 2020-12-08
    • 2015-09-18
    • 2017-07-24
    • 1970-01-01
    • 2020-11-23
    • 2012-01-02
    • 2018-04-01
    • 2017-05-06
    • 2018-03-20
    相关资源
    最近更新 更多