- add configuration files to the src/main/ebextensions folder as shown in following doc: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-tomcat.html
- add the following plug in your pom file to ensure the extension folder end up in the root directory of the war file:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src/main/ebextensions</directory>
<targetPath>.ebextensions</targetPath>
<filtering>true</filtering>
</resource>
</webResources>
</configuration>
</plugin>
3. add A record to route 53 to map your domain to elastic beanstalk target xxx.us-west-2.elasticbeanstalk.com
4. (optional) ssh (eb ssh)to the ec2 instance to make sure the configuration/key/crt files are created. For some reason, the /etc/httpd/conf.d/ssl.conf isn’t created in my case, I have to add it manually, and then restart apache