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

I want the development environment to work the same as the production environment. This should minimize β€œthis works for me,” pointing a finger.

Therefore, my team chose Ubuntu 14.04 as the operating system.

We also want to deploy on AWS.

Since I used the QwikLabs example when using Elastic Beanstalk, I realized that there is no choice to choose Ubuntu 14.04.

enter image description here

enter image description here

How do I start deploying a Django application on an AWS EC2 instance running on Ubuntu 14.04?

Thanks.

+7
source share
2 answers

AWS restricts operating systems that run under Elastic Beanstalk, as it is a Platform as a Service . To get full flexibility in operating systems and settings, you need to use EC2.

There are two non-optimal workarounds:

+9
source

You need to set up a custom platform, and then tell Elastic Beanstalk to use this platform when creating with eb create -p YourPlatformARN .

To ensure that related documents are supported by Ubuntu through their user platform service: "... supported operating systems are Ubuntu, RHEL or Amazon Linux ..."

0
source

Source: https://habr.com/ru/post/986543/


All Articles