AWS Elastic Beanstalk: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== 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 ==
== Upgrading the platform of an Elastic Beanstalk instance ==


Line 6: Line 14:
* Select the new platform from the dropdown and click <kbd>Save</kbd>
* Select the new platform from the dropdown and click <kbd>Save</kbd>


=== Troubleshooting ===
== 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 [[EC2 Security Certificates#Re-installing certificates after upgrading an Elastic Beanstalk instance platform|reinstall any Let's Encrypt security certificates]] if the upgrade process has not copied the `/opt/letsencript/` directory.
It may be necessary to [[EC2 Security Certificates#Re-installing certificates after upgrading an Elastic Beanstalk instance platform|reinstall any Let's Encrypt security certificates]] if the upgrade process has not copied the `/opt/letsencript/` directory.
[[Category:AWS]] [[Category:Elastic Beanstalk]] [[Category:Web Development]]
[[Category:AWS]] [[Category:Elastic Beanstalk]] [[Category:Web Development]]

Revision as of 13:25, 6 June 2020

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.