Elastic Beanstalk upgrade major PHP version (e.g. 7.4 > 8.1) without creating new environment

0

Is there a way to easily upgrade an Elastic Beanstalk environment's major PHP version (e.g. 7.4 > 8.1) from the console without creating a new environment?

Like this, but without doing it from the command line: (this was from a couple years ago) https://dev.to/paulmicheli/upgrade-aws-elastic-beanstalk-php-major-version-5do

This should be such a simple option for AWS to provide - but I'm not seeing a way to do it: Sreenshot showing deprecated

asked 3 years ago1.5K views
1 Answer
0

I just tested the upgrade via CLI on one of my demo environments (going from PHP 7.4) via the command line update.

Opened AWS CloudShell, and pasted in: aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2 v3.5.0 running PHP 8.1" --environment-id "e-XXXXXXX" --region "XX-XXXXXX-1"

Pressed enter, and it took maybe 2 minutes max - went grey in the console, then came back healthy. Had a total of perhaps 30 seconds of downtime for my application (demo). It automatically created the new instance, and once healthy, removed the old instance.

I've spent vastly longer to accomplish the same thing "manually" via creating a new environment in the console, with far more room for error.

Why doesn't AWS have a button / selection in the console that does exactly this?

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions