I set up an Elastic Beanstalk PHP environment.
On the EC2 instance, I installed a few other packages, including PhpMyAdmin and did various changes to the instance to get the configuration that I'm looking for. I also uploaded all of my website's files to
But I'm confused as to how this all scales. Say my single instance's performance is peaking, and AWS determines that I need a second instance to keep up with the demand.
How does Elastic Beanstalk create a second instance of my EC2 server, along with PhpMyAdmin (and the other packages), as well as all my website's files in
Would I then have two servers with PhpMyAdmin and my website files? How does it know how to re-install PhpMyAdmin on the second instance, and configure it in the same way my first instance is configured?