I am attempting to deploy a Flask app to AWS Elastic Beanstalk (single EC2 instance) with HTTPS enabled. I successfully deployed a version of my app without HTTPS, but then I followed this tutorial to terminate HTTPS:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-python.html
Following the documentation, I created a .ebextensions/https-instance.config
file with the template code they provide (truncated here):
packages:
yum:
mod24_ssl : []
files:
/etc/httpd/conf.d/ssl.conf:
mode: "000644"
owner: root
... CERTIFICATES etc. etc. ...
Uploading this with my code, the deployment failed. Checking through the logs, the error was in the first part of the config file when yum attempts to install mod24_ssl
:
No package mod24_ssl available
From my research (including here https://forums.aws.amazon.com/thread.jspa?threadID=222977), it seems that I may want to try installing a different package? I've attempted to replace mod24_ssl
with mod_ssl
orhttpd24-mod_ssl
, but both return the same error (with their respective packages "not available").
Help much appreciated! Thanks.