Skip to content

coding-kelps/rapture-minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rapture - Minecraft

Note

This repository is part of the Rapture project, which provides sample configurations for setting up self-hosted game servers.

This repository provides an example configuration for hosting a Minecraft server
on a single AWS EC2 instance. Mods can optionally be loaded from the
Curseforge API.

Quickstart

Prerequisites

  • python (3.12.10)
  • terraform (1.11.4-1)
  • aws-cli (2.18.11)
  • poetry (2.1.2)

Ensure you've configured the AWS CLI (via aws configure) with a
profile that has sufficient permissions. You'll also need a CurseForge API key,
which you can get here (account required).

Terraform

terraform init
# Replace the ssh public key file with your own
terraform apply -var ssh_public_key="$(cat ~/.ssh/id_ed25519.pub)"

Ansible

poetry install
poetry shell
ansible-galaxy install -r requirements.yml
ansible-playbook deployment.yml --extra-vars "minecraft_server__cf_api_key=$CF_API_KEY minecraft_server__cf_url=$CF_MODPACK_URL"

Teardown

terraform destroy -var ssh_public_key="$(cat ~/.ssh/id_ed25519.pub)"

Thank You!

A huge thanks to the contributors and maintainers of the itzg/docker-minecraft-server project.