_____ _____ ____ _ _
|_ _| ___| __ ) ___ __| |_ __ ___ ___| | _ ___ ___ _ ____ _____ _ __
| | | |_ | _ \ / _ \/ _` | '__/ _ \ / __| |/ / __|/ _ | '__\ \ / / _ | '__|
| | | _| | |_) | __| (_| | | | (_) | (__| <\__ | __| | \ V | __| |
|_| |_| |____/ \___|\__,_|_| \___/ \___|_|\_|___/\___|_| \_/ \___|_|
I forked this project off someone who did a terraform setup for Java edition of minecraft, I bought the Bedrock edition of minecraft therefore created this project for myself to host a Minecraft Server in Bedrock Edition.
- Install PuTTy
- Install Terraform (tested on 1.1.3).
- Install the AWS CLI.
- Configure the AWS CLI with an access key ID and secret access key.
Please fill out the terraform.tfvars file before running this configuration
- Where you want your server to be. The options are here.
- E.g.
eu-west-2
.
- Only this IP will be able to administer the server. Find it here.
- E.g.
104.65.182.8
.
- This is the name of your SSH key pair used to access the EC2 instance.
- Copy the bedrock edition server download link from here. (use ubuntu)
- E.g.
https://minecraft.azureedge.net/bin-linux/bedrock-server-1.18.2.03.zip
for Minecraft version 1.18.2.
- Run
terraform init
. - Run
terraform apply
. - a .pem private key will be made in the folder, convert this to .ppk with puTTygen (comes with puTTy)
- use that key and the instance public ip to access the EC2
- This configuration uses a VM image with Minecraft server pre-installed, however it is an old version so you will need to run the
server-update-script.sh
file with sh command. - set the bedrock_server file with execute permissions using
chmod +x bedrock_server
- start the server with command
LD_LIBRARY_PATH=. ./bedrock_server
- Copy the public IP output into Minecraft, port 19312
- Wait a minute for the server to spin up.
- Play.
- Irrecoverably shut everything down with
terraform destroy
.