Skip to content

AWS Deployment

skyper edited this page Jun 10, 2023 · 22 revisions

These instructions are for administrators who like to provision a Segfault.net Server Centre (SSC) onto a newly created AWS instance. The step by step instructions turn a fresh (vanilla) AWS Instance into a Segfault.net Server Centre.

This is how we deploy a SSC onto AWS.

1. Create EBS volumes

Create 2 EBS volumes

  1. 1TB, gp2, encrypted, name=sf
  2. 1GB, gp2, encrypted, name=sf-config

2. Create an AWS instance

  1. Launch a t3a.medium instance (Ubuntu, amd64).
  2. Attach the 2 volumes (in order sf, sf-config).
  3. Assign an Elastic IP to the instance.

3. Setup the instance

Log in to the instance.

Download the SSC source:

mkdir /home/ubuntu/src
cd /home/ubuntu/src
git clone https://github.com/hackerschoice/segfault.git
cd segfault

Format the volumes:

source provision/funcs_aws.sh
aws_fs_add /dev/nvme1n1 /sf
aws_fs_add /dev/nvme2n1 /sf/config

Continue reading Preparing the SSC.

Continue reading Installing the SSC.