From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Updating the platform

Updating the platform

- Eventually the platform that we are running our Elastic Beanstalk application on will need to be updated. Now, Elastic Beanstalk can handle minor version upgrades, but if you need to do a major version upgrade, for example, PHP 7 to PHP 8, then you are going to need to create a new environment and then swap to that new environment. I'm going to give you a demonstration of doing that. However, in this example, I am going to be moving from PHP 8.1 to 8.0 and then back and forth. So I'm going to create a second environment that is running PHP 8.0. Currently our up and running environment is running PHP 8.1. If we click on go to environment here, we can see 8.1.11. In our command line interface. I'm going to run eb create dbtest-old-php and specify the platform php-8.0. This is going to create a new environment for us and this environment is going to be running PHP 8.0 instead of 8.1. This will take a few minutes to start. I did not specify a database here, so it'll be slightly faster…

Contents