Warning
This method doesn't deploy puppeteer-html2pdf, which is required for PDF generation.
This section creates a application bundle for AWS Elastic Beanstalk to run a Multi-Container Docker environment with a ready-to-use Orca Web server.
Using Elastic Beanstalk, the SSL certificates are managed via AWS Certificate Manager (ACM) and installed on a front-facing Elastic Load Balancer (ELB). The distributed certificate is a wildcard, whose renewal is automatically handled by ACM.
Note
- Pro: Easiest setup possible.
- Con: Uses an ELB (per environment), which is somewhat pricy and downright overkill, considering our current needs.
- Create an Elastic Beanstalk environment configured as follows:
- Use an Elastic Load Balancer and listen for both HTTP and HTTPS
- Select Multi-Container Docker environment
- Set up the required environment variables
- Create a
zip
archive from theDockerrun.aws.json
and thenginx-config
directory. - Upload to the desired Elastic Beanstalk environment.