AWS Elastic Beanstalk
Configuration
Configuration is stored in [project_root]/.elasticbeanstalk/config.yml.
This file should not be included in git repo.
The Elastic Beanstalk (EBS) application and environment names are specified in this yaml file. This is determines these properties for the AWS eb cli.
Upgrading the platform of an Elastic Beanstalk instance
- AWS Management Console > Compute > Elastic Beanstalk
- Click on an EB instance
- Under Platform on the left click the Change button.
- Select the new platform from the dropdown and click Save
Troubleshooting
403 HTTP error
Receiving a 403 error when attempting to load the hosted site indicates that something unintended was uploaded to the root of the web directory.
SSH to the server to confirm the content of that directory, e.g. /var/www/html/.
Let's Encrypt security certificates
It may be necessary to reinstall any Let's Encrypt security certificates if the upgrade process has not copied the /opt/letsencript/ directory.