AWS Elastic Beanstalk: Difference between revisions
| Line 17: | Line 17: | ||
Open up the HTTPS port (443) to all IP addresses, e.g. `0.0.0.0/0` and `::/0` | Open up the HTTPS port (443) to all IP addresses, e.g. `0.0.0.0/0` and `::/0` | ||
<div class="alert alert-info">Note that this configuration can be placed in an `.ebextensions` config file.</div> | <div class="alert alert-info">Note that this configuration can be placed in an `.ebextensions` config file. See [[Elastic_Beanstalk_Security_Certificates#Open_port_443_.28HTTPS.29_on_the_EC2_instance|Open the HTTPS port for Let's Encrypt certificates]].</div> | ||
== Upgrading the platform of an Elastic Beanstalk instance == | == Upgrading the platform of an Elastic Beanstalk instance == | ||
Revision as of 13:42, 6 June 2020
Configuration
Web application configuration files
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.
Security rules
AWS Console > EC2 > instances > instance linked to EBS environment > details > click on security group > inbound rules tab
Open up the SSH port (22) to specific public IP of the local development LAN. e.g. XX.XX.XX.XX/32 where XX.XX.XX.XX is the IPv4 public address.
Open up the HTTPS port (443) to all IP addresses, e.g. 0.0.0.0/0 and ::/0
.ebextensions config file. See Open the HTTPS port for Let's Encrypt certificates.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/.