Table of Contents

Setup EC2 for AGTEK WebApps

The AGTEK WebApps are written as a web application using the Apache Tomcat application server. The web app hosts a REST api that the browser side portion can use to interact with the AGTEK Access server. Initial deployments of the AccessWeb app are likely to be deployed on a separate AWS EC2 instance, which might be behind a load balancer, or may include several instances to assist shouldering the load.

Configuring the deployment environment is picky enough that a detailed recipe is required to be successful. This page details that configuration. Note that this does NOT discuss the development environment, nor does it does where you will obtain the AccessWeb.war application image.

Because of the intertwined nature of some of these packages, you may need to revisit some configurations a couple of times.

AccessWeb environmental technologies

EC2 setup

Framework installs

Tomcat configuration

Tomcat needs to have a few configuration files modified prior to execution.

Certbot setup

The script get-certs is used to register the app server with letsencrypt. This script create the Tomcat keystore, fetch the certificate and install it into the Tomcat keystore. Run the script:

./get-certs

Once the Tomcat configuration has done, and this step has been done you should be able to run Tomcat. Note: You need to also install AccessWeb.war.

Test configuration setup

For the pourposes of this document, we're assuming you are setting up “test.agtek.com”.