在.ebextensions和buildspec.yml中指定AWS Runtime-Version

时间:2019-07-22 14:27:42

标签: amazon-web-services amazon-elastic-beanstalk ebextensions

我对使用AWS还是陌生的,需要仔细阅读文档,并且正在努力了解如何以最有效的方式组织项目。理想地;尽可能以一种方式做事。

我正在使用Elastic Beanstalk部署我的Django项目。

per the documentation,我有一个buildspec.yml文件,它指定了Python的运行时版本,例如:

phases:
  install:
    runtime-version:
      python: 3.7

我还通过*.config目录per the documentation中的myapp/.ebextentions文件指定了许多其他命令。

我的问题:我是否要使用buildspec.yml文件?还是可以将runtime-versionartifacts之类的东西放入其中?一个.ebextensions文件(例如runtime.config)?

我仔细阅读了ebextensions可用选项的文档,这使我相信我不能并且必须使用buildspec.yml文件(至少如果我要使用“ Ubuntu标准映像版本2.0”,(我这样做。)

0 个答案:

没有答案