I want to update my environment from PHP 5.6 to 7.1. However, I can’t see any version except 5.6:
Is it possible to update PHP version? If no – is there any tutorial how can I create new environment that way it uses current database (or new database copied from existing one)?
You can only do this when creating an environment. Once the environment has been created you my switch platforms from the available minor options within the major version you selected at creation (as you see in your example).
The easiest way to accomplish what you’re after is to clone your existing environment and select the 7.x platform version you would like during that setup process.
Coming to the second part of the query with respect to the databases :
How have you configured it ? ( is it created from the Beanstalk console ? or is the database totally independent of the Beanstalk environment ( recommended way ) documented here
case 1 :
If the database is configured from Beanstalk console like described here, then procedure to migrate it to a new Beanstalk environment ( with updated platform version ) is described here
case 2 :
If the Database is external, then we do not have any hazel, you just need to reconfigure the security group rules etc.. for the new environment and then proceed to delete the old environment. Configuring external RDS
2
Answers
You can only do this when creating an environment. Once the environment has been created you my switch platforms from the available minor options within the major version you selected at creation (as you see in your example).
The easiest way to accomplish what you’re after is to
clone
your existing environment and select the7.x
platform version you would like during that setup process.If we take a look at the Elastic Beanstalk “Updating Your Elastic Beanstalk Environment’s Platform Version” documentation for PHP, we see that the recommended approach is to do a Blue/Green deployment.
Coming to the second part of the query with respect to the databases :
How have you configured it ? ( is it created from the Beanstalk console ? or is the database totally independent of the Beanstalk environment ( recommended way ) documented here
case 1 :
If the database is configured from Beanstalk console like described here, then procedure to migrate it to a new Beanstalk environment ( with updated platform version ) is described here
case 2 :
If the Database is external, then we do not have any hazel, you just need to reconfigure the security group rules etc.. for the new environment and then proceed to delete the old environment. Configuring external RDS