Assign a Subdomain to Elastic Beanstalk and Enable HTTPS
To enable HTTPS (easily), make sure you created one Elastic Beanstalk environment with Load Balancer option.
#
Create Hosted Zone- find Route 53 in AWS console
- choose
hosted zones
on the left - click
create hosted zone
- write your
subdomain.example.com
as domain name, choosepublic hosted zone
and then clickcreate hosted zone
#
Edit TTL (optional for testing)- find the NS record in this hosted zone, select and click
edit
- change TTL to some value like 900 (15 min), by default the value is 172800 (2 days)