No description
Find a file
2022-09-15 18:05:33 +02:00
payload/init.d Server now pops up with ansible. Removed packer entirely 2022-02-13 23:07:02 +01:00
.gitignore Add jamulus pems 2022-02-15 15:48:31 +01:00
dns.tf use c6i instance type 2022-02-25 20:02:59 +01:00
jamulus-central1.pem Add jamulus pems 2022-02-15 15:48:31 +01:00
jamulus-install.yml Update jamulus to latest version and increase instance size 2022-09-15 18:05:33 +02:00
jamulus-west1.pem Add jamulus pems 2022-02-15 15:48:31 +01:00
jamulus.pem Add jamulus pems 2022-02-15 15:48:31 +01:00
main.tf Update jamulus to latest version and increase instance size 2022-09-15 18:05:33 +02:00
README.md Intial commit 2021-11-06 03:07:00 +01:00
variables.tf Add ansible playbook, variables tf 2022-02-13 23:07:20 +01:00

Setup Ephemeral jamulus Server

This project will help you create a game server with jamulus on it. You can create an IAM image with packer with arma and deps installed. You can create a jamulus server with that image using terraform

Getting Started

Create a .pem file

Create a .pem file either locally or on AWS and import it here. it could be called jamulus.pem

Building the IAM Image

Use packer to create the IAM image. aws_ubuntu20_jamulus.json is the main packer file with scripts/deps.sh being what runs when packer is building

Building on linux:

# Validate your changes
$ packer validate
$ build.sh <your aws key> <your aws secret>

Building on windows:

# Validate your changes
> packer build -var "aws_access_key=<your aws key>" -var "aws_secret_key=<your aws secret>" -var .\aws_ubuntu20_jamulus.sjon

Building with CI/CD

Simply commit and push to gitlab. Go to the pipeline and accept the manual action.

Create the server

Set up AWS profile vereto in the ~/.aws/credentials file

# Do a dry run (WILL NOT CREATE SERVER)
$ terraform plan

# Make the server (WILL CREATE BILLABLE SERVERS)
$ terraform apply

Changing the region of deployed server can be done under the provider standza

Changing the instance class can be done under the aws_instance.jamulus stanza