How to use Ubuntu 14.04 on AWS Elastic Beanstalk for a Python Django app

前端 未结 2 1533
长发绾君心
长发绾君心 2021-01-17 18:39

I want to ensure that the development environment to work just the same as the production environment. This is to minimise \"it works for me\" finger-pointing.

Hence

相关标签:
2条回答
  • 2021-01-17 18:48

    AWS limits the operating systems that run under Elastic Beanstalk, as it is Platform as a Service. To get full flexibility on operating systems and configuration, you'd need to use EC2.

    There are two suboptimal workarounds, though:

    • use a Docker instance that is running Ubuntu
    • use this complicated hack to run Ubuntu in EB
    0 讨论(0)
  • 2021-01-17 19:09

    You need to set up a custom platform then tell Elastic Beanstalk to use that platform at creation with eb create -p YourPlatformARN.

    To confirm, within the linked docs, Ubuntu is supported through their custom platform service: "... the supported operating systems—Ubuntu, RHEL, or Amazon Linux ..."

    0 讨论(0)
提交回复
热议问题