Vinnie James Vinnie James - 1 year ago 221
PHP Question

Deploy multiple platforms to Elastic Beanstalk (PHP/Python)

Is it possible to deploy multiple platforms to AWS?

I have a PHP application that I would also like to run a small python script.

I see the PHP platform installs Python by default, but using

eb deploy
AWS does not pick up
and install the dependencies.

I have tried installing
manually which hangs when trying to install
I also tried adding a config file:

NumProcesses: 3
NumThreads: 20

But now
eb deploy
complains about:

ERROR: "option_settings" in one of the configuration files failed validation. More details to follow.
ERROR: Unknown or duplicate parameter: WSGIPath
ERROR: Unknown or duplicate parameter: NumThreads
ERROR: Unknown or duplicate parameter: NumProcesses

Which I believe is because
thinks this is only a PHP app.

What is the proper way to run multiple platforms side-by-side?

Answer Source

Solved by using .ebextentions to run pre-install commands in the container during deployment, which required setting the system path during eb deploy

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download