DEV Community

Discussion on: Laravel Deployment on Elastic Beanstalk

Collapse
 
jmpps profile image
JM PPS

Sorry but this is so wrong.
You should never "log in" and install anything on an ec2 instance that is built by Elastic Beanstalk.

The configuration of your elastic beanstalk environment should be done using the .ebextensions and .platform directories. Look it up.

Otherwise, the moment you do an update or scale out and EB build a new instance, you have to log in and do it all over again.

You can also set all your settings as environment variables in the elastic beanstalk config.