Skip to content

Create SteVe Instance in AWS Lightsail

Christian Samsel edited this page Nov 13, 2019 · 9 revisions

How to create a SteVe Server using AWS Lightsail (free tier)

Prepare AWS

  1. Log into AWS, AWS Services -> Lightsail

  2. Create Instance, Platform Linux/Unix, OS Only Ubuntu 18.04 LTS, Upload public key, select smallest plan

  3. Create Static IP address, Attach to Instance

  4. Click on Instance -> Networking, Under Firewall Select + Add Another TCP 8080

  5. Create Database, Pick MySQL 5.7.26, You can leave Username and Password to default, Plan Standard / smallest

  6. wait for everything to be started

Configure VM

  1. Connect to instance via ssh using the public IP.

  2. Update everything and install required packages.

sudo apt update && sudo apt -y upgrade

sudo apt install maven mysql-client-core-5.7

  1. Prepare Database (you can lookup the credentials in Lightsail -> Databases)

mysql -usteve -hls-e98192e66a6XXXXXXXXXXXXXXXXXX.c0ftlmkcbxge.eu-central-1.rds.amazonaws.com -p

mysql> CREATE DATABASE stevedb CHARACTER SET utf8 COLLATE utf8_unicode_ci;

mysql> quit

  1. Install SteVe

git clone https://github.com/RWTH-i5-IDSG/steve.git; cd steve

vi src/main/resources/config/prod/main.properties

configure db.* to according to lightsail credentials

server.host = 0.0.0.0

Build and start SteVe

MAVEN_OPTS="-Xmx100m" mvn package

java -jar target/steve.jar

Clone this wiki locally